summaryrefslogtreecommitdiff
path: root/web/lua2dox/examples/lua/main.lua
blob: 6f5245e98bd1519154b71a3d139b1993cc950af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---- Copyright 2012 Simon Dales
--
-- This work may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either version 1.3
-- of this license or (at your option) any later version.
-- The latest version of this license is in
--   http://www.latex-project.org/lppl.txt
--
-- This work has the LPPL maintenance status `maintained'.
-- 
-- The Current Maintainer of this work is Simon Dales.
--

--[[!
	\file
	\brief test code
	
	]]
	
--[[!
	\mainpage
	
	Some test code.
	This shows a hierachy of classes.
	For this example we do animals.
	
	]]
	
require 'animals'

-- main
local animals = {
	 Cat()
	,Dog()
	,Bird()
	,RedKite()
	,Pigeon()
	}
	
for k,v in pairs(animals) do
	v:call()
end