lua-users home
lua-l archive

Re: Catching syntax errors.

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


>Is there anyway for the
>embedding program to be notified of syntax errors rather than just
>printing them to standard error and calling exit().
Yes. Override the error function using a hook and have it call a C function.
That's how I'm doing just that in my Lua development environment.
This will work for any kind of error, not just syntax errors.
Steve

AltStyle によって変換されたページ (->オリジナル) /