[antlr-interest] v4 feature request: array of mode names in lexer object
Peter Boughton
boughtonp at gmail.com
Sat Jan 21 09:43:55 PST 2012
When debugging, it would be useful to have actual mode names
displayed, rather than just numbers.
Similar to how you can do this with tokens:
lexer.tokenNames[token.getType()]
I'd like to be able to do:
lexer.modeNames[lexer.mode]
( At the moment I've got my own manually created array, but it'd be
much nicer to have something that didn't keep needing updates when
modes are added or re-ordered. )
Thanks. :)
More information about the antlr-interest
mailing list