[antlr-interest] Parsing a file
Yuri Tijerino
yuri at tijerino.net
Wed Nov 12 09:49:11 PST 2008
> What I really want is change the default behavior and throw away the
> tokens that cause the exception and continue parsing the input after
> those tokens as if it was a new input. Is this even possible? Terrence?
>
Isn't this in a way what the Lexer does when trying to find tokens based
on EBNF rules? How do I duplicate that behavior in the parser rules so
that it won't stop trying to match the rest of the input when a rule
partially matches something and it can't recover automagically?
Yuri Tijerino
More information about the antlr-interest
mailing list