lua-users home
lua-l archive

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


Background:
I register a lot of self-defined commands for Lua by lua_register.
I want to tell the users all the errors in their Lua scripts other
than one by one.

Thank you for your attention to my question.

On Mon, Jan 25, 2021 at 8:45 PM 孙世龙 sunshilong <sunshilong369@gmail.com> wrote:
>
> >Luacheck might do the job.
> Luacheck is a choice, but it seems not a good one for me.
> Firstly, Luacheck could not support the command that I register to Lua
> by lua_register.
> Secondly, Luacheck is written in Lua other than C/C++/C#, which is
> hard to integrate into our project (C/C++/C#).
>
> Thank you for your attention to my question.
>
> On Mon, Jan 25, 2021 at 8:16 PM Les Farrell <lesfarrell@gmail.com> wrote:
> >
> > Luacheck might do the job. https://github.com/mpeterv/luacheck
> >
> > On Mon, 25 Jan 2021 at 12:04, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> >>
> >> > Maybe luac can do it.
> >>
> >> luac uses the Lua library, just like lua does. Therefore, it stops
> >> compilation at the first error.