lua-users home
lua-l archive

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


>Is it possible to syntax check Lua code before actually running it?  If so,
>how?

With lua_loadfile (4.1, but also possible in 4.0 with a simple patch),
or with a trick such as adding "return function () ... end" around the code.

This has been discussed before in lua-l. See the archives.
--lhf