[antlr-interest] C Target: Stopping parse on first error
Jim Idle
jimi at temporal-wave.com
Sun Nov 6 12:40:37 PST 2011
Easiest would be setjmp/longjmp if you have to do that. But just let it cascade and only report the first error.
On Nov 6, 2011, at 11:22, A Z <asicaddress at gmail.com> wrote:
> In the C target is there a way to arbitrarily return from the parser? For
> instance, if an include file is not found ANTLR never sees an exception but
> I would like to stop parsing that file immediately. Could I possibly insert
> an EOF token before continuing with the parse?
>
> Thanks
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list