[antlr-interest] Failing upon illigal input termination
Vitaliy
Vitaliy at dbsophic.com
Thu Nov 6 05:28:26 PST 2008
Gavin,
Thanks so much!!!
That did it!
Wasted so much time on this one..
Wonder why this is not the default behavior?
Anyway, Thanks again!!
Vitaliy
-----Original Message-----
From: Gavin Lambert [mailto:antlr at mirality.co.nz]
Sent: Thursday, November 06, 2008 09:41
To: Vitaliy; antlr-interest at antlr.org
Subject: Re: [antlr-interest] Failing upon illigal input termination
At 04:55 6/11/2008, Vitaliy wrote:
>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?
Add EOF to the end of your top-level parser rule.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 3589 (20081106) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature database 3591 (20081106) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the antlr-interest
mailing list