forked from jasder/antlr
debugging
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8933]
This commit is contained in:
parent
0168e0837a
commit
2ebedba421
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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?
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue