From 5403d9bae9f87f60fb6ce7898315deb3859f172e Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Fri, 7 Sep 2012 16:57:35 -0700 Subject: [PATCH] pay attention to the TokenLabelType --- .../resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg index e0cb587b1..477359cd5 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg @@ -526,7 +526,7 @@ SetNonLocalAttr(s, rhsChunks) ::= AddToLabelList(a) ::= "..add();" -TokenDecl(t) ::= "public Token ;" +TokenDecl(t) ::= "public ;" TokenTypeDecl(t) ::= "int ;" TokenListDecl(t) ::= "public List\ = new ArrayList\();" RuleContextDecl(r) ::= "public ;"