forked from jasder/antlr
v4: specify tokenVocab to fix unit test
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9391]
This commit is contained in:
parent
5e1b372ca1
commit
9e89438556
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue