[antlr-interest] pass state from parser to lexer

Scobie Smith (Insight Global) v-scobis at microsoft.com
Mon Jul 2 12:02:42 PDT 2012

Is there a way to pass state information from the parser to the lexer? I am continually facing situations where the lexer should tokenize differently based on the parser rule. I have seen this question about ANTLR discussed on the web, but so far I haven't seen any solutions.

More information about the antlr-interest mailing list