lua-users home
lua-l archive

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


> Is there any tool that can do some (offline) analysis on LUA code? I ask
> this because I write a WEB GUI where the user enters LUA code. I'd like to
> have a button that runs at least syntax analysis on the code entered.

You just call load or luaL_loadbuffer and check the return code and
error message. The Lua parser stops after the first syntax error.