v4: specify tokenVocab to fix unit test

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9391]
This commit is contained in:
sharwell 2011-11-18 11:34:49 -08:00
parent 5e1b372ca1
commit 9e89438556
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class TestTreeParsing extends BaseTest {
"WS : (' '|'\\n') {$channel=HIDDEN;} ;\n";
String treeGrammar =
"tree grammar TP; options {ASTLabelType=CommonAST;}\n" +
"tree grammar TP; options {tokenVocab=\"T\"; ASTLabelType=CommonAST;}\n" +
"a : ID INT+ PERIOD {System.out.print(\"alt 1\");}"+
" | ID INT+ SEMI {System.out.print(\"alt 2\");}\n" +
" ;\n";