[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Catching syntax errors.
- From: Steve Dekorte <steve@...>
- Date: Thu, 22 Jan 98 12:26:56 -0800
>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