make sure tokenNames puts tokens at right spot; didn't handle wholes in token type sequence.

This commit is contained in:
Terence Parr 2012-07-03 13:37:43 -07:00
parent 9455f5cd30
commit d0e7e79b2b
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public <if(parser.abstractRecognizer)>abstract <endif>class <parser.name> extend
<endif>
public static final String[] tokenNames = {
"\<INVALID>",
<parser.tokenNames:{t | <t>}; separator=", ", wrap, anchor>
<parser.tokenNames:{t | <t>}; null="null", separator=", ", wrap, anchor>
};
public static final int
<parser.rules:{r | RULE_<r.name> = <r.index>}; separator=", ", wrap, anchor>;