[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Schema Validation
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 25 Jul 2003 10:21:51 -0300
>Is there a way to check if lua files match predifined structure before
>starting to work with.
Yes. For an example see "Reflexive Facilities" in http://www.lua.org/ddj.html ,
specially http://www.lua.org/ddj.html#L6 and http://www.lua.org/ddj.html#L7 .
You'll have to adapt the scheme to your needs, but the main idea is to describe
what you want in a Lua table and write a Lua function that does the checking.
--lhf