[antlr-interest] ANTLR3 Capturing System.out.println
Kailey Joanette
kaileyjo at bigbluebubble.com
Thu Mar 29 11:35:15 PDT 2007
I don't understand why I have a problem in the first place. If there is a
predicate looking ahead... I still have the same message that happens:
line 8:1 mismatched input '{' expecting ';'
line 9:14 no viable alternative at input 'System'
Even though there is the rule:
| { input.LT(3).getText().equals("out") }? Println
And it does in fact only go there if it should... but then why does it think
there are no viable alternatives? Should there be backtracking or something?
Is there something I'm not seeing that I should be?
Kailey
More information about the antlr-interest
mailing list