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 <[email protected]> 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 List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
