antlr4rust icon indicating copy to clipboard operation
antlr4rust copied to clipboard

Expose `mode_stack` on Lexer

Open timboudreau opened this issue 3 years ago • 0 comments

I'm attempting to use a grammar originally generated to Java, which contains a number of lexer actions that behave differently depending on the current mode / contents of the mode stack. This patch simply exposes the mode_stack field, just as it would be exposed to subclasses in a generated Java lexer.

timboudreau avatar May 17 '21 18:05 timboudreau