[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: code analysis
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 31 Dec 2014 11:05:18 -0200
> 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.