diff options
Diffstat (limited to 'Master/texmf-dist/doc/support/lua2dox/examples/lua/main.lua')
-rw-r--r-- | Master/texmf-dist/doc/support/lua2dox/examples/lua/main.lua | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/lua2dox/examples/lua/main.lua b/Master/texmf-dist/doc/support/lua2dox/examples/lua/main.lua new file mode 100644 index 00000000000..6f5245e98bd --- /dev/null +++ b/Master/texmf-dist/doc/support/lua2dox/examples/lua/main.lua @@ -0,0 +1,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 |