[antlr-interest] Skipping anything not parseable

Monty Zukowski monty at codetransform.com
Tue Mar 22 05:12:25 PST 2005


togol machillan wrote:
> Hi,
> 
> Is there any way to skip token on input for which no rule has been defined in the parser? When the parser sees some structure which it does not recognize, it stops saying that it was expecting something else. I want the parser to continue and just skip over structures or tokens it cannot handle. 
> 

Have a look at this section of the docs:

http://www.antlr.org/doc/lexer.html#Filtering%20Input%20Streams

Monty


More information about the antlr-interest mailing list