[antlr-interest] Failing upon illigal input termination

Vitaliy Vitaliy at dbsophic.com
Wed Nov 5 07:55:00 PST 2008


Hi,



I would like Antlr to fail upon any error, instead of trying to recover.

I've managed to do this for almost all types of errors, following the directives in the reference,

but for some reason if there is an illegal input termination, Antlr won't report an error for it.



That is, If we've got the input:

LegalStatement1,

LegalStatement2,

...

LegalStatementN,

IllegalStatement,



Antlr would stop on LegalStatementN,

Instead of reporting an error for IllegalStatement.



What can I do to achieve this behavior?



I would really appreciate any help or response,

Vitaliy



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081105/498053c9/attachment.html 


More information about the antlr-interest mailing list