Sample Code  0.1 20120518
main.lua
Go to the documentation of this file.
1 ---- Copyright 2012 Simon Dales
2 --
3 -- This work may be distributed and/or modified under the
4 -- conditions of the LaTeX Project Public License, either version 1.3
5 -- of this license or (at your option) any later version.
6 -- The latest version of this license is in
7 -- http://www.latex-project.org/lppl.txt
8 --
9 -- This work has the LPPL maintenance status `maintained'.
10 --
11 -- The Current Maintainer of this work is Simon Dales.
12 --
13 
14 --[[!
15  \file
16  \brief test code
17 
18  ]]
19 
20 --[[!
21  \mainpage
22 
23  Some test code.
24  This shows a hierachy of classes.
25  For this example we do animals.
26 
27  ]]
28 
29 require 'animals'
30 
31 -- main
32 local animals = {
33  Cat()
34  ,Dog()
35  ,Bird()
36  ,RedKite()
37  ,Pigeon()
38  }
39 
40 for k,v in pairs(animals) do
41  v:call()
42 end