[antlr-interest] controlling lexer modes from the parser

Stevenson, Todd (GE Healthcare) Todd.T.Stevenson at ge.com
Tue Oct 26 09:45:24 PDT 2010


Is it possible to control lexer modes from the parser?  I would like
change the definition of language keywords to identifiers depending on
the state of the parser.  The behavior I want is similar to the example
XML lexer that is on the antlr website, but I want to control the state
from the parser code.  Is this possible?
 
 


More information about the antlr-interest mailing list