lua-users home
lua-l archive

[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