first unit test in v4 passes :)
@Test public void testA() throws Exception {
Grammar g = new Grammar(
"parser grammar P;\n"+
"a : A;");
String expecting =
"(PARSER_GRAMMAR P (RULES (RULE a (BLOCK (ALT A)))))";
String found = g.ast.toStringTree();
assertEquals(expecting, found);
}Ter _______________________________________________ antlr-dev mailing list [email protected] http://www.antlr.org/mailman/listinfo/antlr-dev
