[antlr-interest] error recovery
Adrian Ber
beradrian at yahoo.com
Tue Aug 18 15:33:35 PDT 2009
Hi all,
I'm doing another attempt with the hope that somebody knows the answer and he/she wants to share.
I have an HTML grammar and I have a lexer rule for strings:
STRING : '"' (ESC|~('"'|'\\'|'\n'|'\r'))* '"'
| '\'' (ESC|~('\''|'\\'|'\n'|'\r'))* '\''
;
But if I have a text in html like
I'm just a text
then the lexer will try to identify a string and it will generate an error.
How can I solve this?
Thanks,
Adrian.
Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com.
http://mail.promotions.yahoo.com/newdomains/aa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090818/61b56845/attachment.html
More information about the antlr-interest
mailing list