[antlr-interest] line 0:-1 mismatched input '<EOF>'
Anuj Mehta
mehta.anuj at wipro.com
Wed Jan 30 05:18:35 PST 2008
Hi
I wrote a grammar for parsing a small text but getting following error.
Please guide me where I am going wrong?
Error:-
recoverFromMismatchedToken
BR.recoverFromMismatchedToken
line 0:-1 mismatched input '<EOF>' expecting Title
Input Text:-
Kernel IP routing table
Destination Gateway
Grammar:
grammar route;
expr : Heading Title {System.out.println("done");};
Heading : 'Kernel IP routing table';
Title : 'Destination' WS 'Gateway';
WS : (' '|'\t'|'\n'|'\r')+ {skip();};
Regards,
Anuj Mehta
Please do not print this email unless it is absolutely necessary. Spread environmental awareness.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080130/334693f9/attachment-0001.html
More information about the antlr-interest
mailing list