[antlr-interest] Catch all token-rule

Martin Olsson mnemo at minimum.se
Thu Aug 4 17:54:36 PDT 2005


Hi,

Is it possible to define a catch-all rule in the lexer that will catch 
anything that is not catched by other rules?

I intend to use this rule for reporting a syntax error and then setting 
Token.SKIP and let the lexer continue it's work.


Regards,
Martin


More information about the antlr-interest mailing list