debugging

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8933]
This commit is contained in:
parrt 2011-07-29 15:45:31 -08:00
parent 0168e0837a
commit 2ebedba421
2 changed files with 13 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class TestU {
ULexer t = new ULexer(new ANTLRFileStream(args[0]));
CommonTokenStream tokens = new CommonTokenStream(t);
UParser p = new UParser(tokens);
ParserRuleContext ret = p.s();
ParserRuleContext ret = p.declarator();
// System.out.println(((Tree)ret.tree).toStringTree());
}
}

View File

@ -432,4 +432,16 @@ public class TestSemPredEvalParser extends BaseTest {
assertEquals(expecting, found);
}
/** if you call a rule as part of FOLLOW with $i, can't execute, but
* what if there is a forced action in that called rule? We should
* NOT execute any actions after
*
* a[int i] : e x[$i] ;
* b[int i] : e x[$i] ;
* e : ID | ;
* x[int i] : {{$i=3;}} ID ;
*
* use global context?
*/
}