rrevenantt / antlr4rust

ANTLR4 parser generator runtime for Rust programming laguage
Other
404 stars 70 forks source link

Expose `mode_stack` on Lexer #24

Open timboudreau opened 3 years ago

timboudreau commented 3 years ago

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.