[antlr-interest] Switching lexer rules on/off from parser

Marcus Tangermann marcus.tangermann at web.de
Mon Mar 21 01:36:00 PST 2005


Hello,

I have a grammar with a declaration part that can ignore newline and a
part with statements. A statement in this part is terminated by a newline.
Is it possible to turn on/off a lexer rule from parser which skips newline
in the declaration part and returns a newline after the end of the 
declaration
part?

Bye
Marcus


More information about the antlr-interest mailing list