dcsimg

How can I make a lexer throw away characters until a rule is satisfied?

Terence Parr

Use the lexer grammar option "filter=true" or "filter=MySkipRule". See ANTLR Masquerading as SED and ANTLR Meets Sed.