lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Yeah its quite easy .. if its pure syntax checking you want ... Just see if
you can compile the code with the code from lua.c (all the dump.c opcode.c
stuff) ... It may need some error catching... but I'm doing it in uCore
quite effictive ... So my users can just call the compile function on a
piece of code and that will check the syntax (in uCore the binary result is
at the same time inserted into the repository for later executing)...

/Erik

----- Original Message -----
From: "Terry Bayne" <gnome@hiwaay.net>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Friday, July 28, 2000 10:27 PM
Subject: Checking Syntax....


> Hi,
>
> Is there a way to check the syntax of or validate a
> lua script programmatically, without actually running it?
>
> Thanks
> Terry Bayne
>
>