[antlr-interest] lexer mode controlled in grammar rules ?
Rampon Jerome
ramponjerome at yahoo.fr
Tue Oct 18 06:08:59 PDT 2011
Hi,
I noticed in the following link
http://www.antlr.org/wiki/display/ANTLR3/1.+Lexer
the possibility to use lexer modes (controlled in the example via the boolean tagMode settings in lexer rules)
Is there one way to switch the lexer mode at grammar rule level or is it only possible at lexer level ?
Apparently @members declarations are not shared in both lexer and parser
and lexer::members, parser::members declaration are dedicated to the lexer for the 1st one,
and the parser for 2nd one
One way to do it if not via @members ?
Thanks
Jerome
More information about the antlr-interest
mailing list