[antlr-interest] Problems with syntactic predicates(?)

Johannes Luber jaluber at gmx.de
Sun Jan 27 14:41:28 PST 2008


Shmuel Siegel schrieb:
> The question at hand isn't how to write the grammar; we all agree that
> it is better to avoid predicates. The question is "why is the original
> grammar failing?" As far as I can tell, the DFA predictor is getting
> confused by the recursion in "args". If I make args depend on IDENTs
> only, I can get the grammar to work (that is, it parses boo(a,b)).

Recursion is a strong clue to use backtracking here. But if that's worth 
it compared to the other approach?

Johannes


More information about the antlr-interest mailing list