[antlr-interest] Ignore\recover from errors

Eyal Post eyal.junk at gmail.com
Wed Mar 1 03:30:58 PST 2006


I'm using Antlr to create a lexer for simple text files. I have some very
simple rules, and I want to make sure the lexer never fails and always
returns the entire text of the original file. How can I acheive this? In
case of an error, I just want the lexer to return the offending character
and continue from the next one. 
 
Eyal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060301/dfabb326/attachment.html


More information about the antlr-interest mailing list