[antlr-interest] RFE: bring back (at least the global) testLiterals option!

J Chapman Flack jflack at math.purdue.edu
Wed Jan 2 05:55:07 PST 2008


Terence Parr wrote:
>     public static final String[] tokenNames = new String[] {
>         "<invalid>", "<EOR>", "<DOWN>", "<UP>", "KWD1", "KWD2", "KWD252"
>     };

Not really, because those are the symbolic names for the tokens,
not necessarily identical to the concrete character strings
representing them (and can't be, in cases where the concrete
strings are invalid identifiers in the target language, or
would clash with existing identifiers used in the code).

-Chap


More information about the antlr-interest mailing list