[antlr-interest] Proposal: synpred inversion?
Sam Harwell
sharwell at pixelminegames.com
Sat Mar 21 12:24:27 PDT 2009
Currently you can only invert sets in a synpred. It seems like inverting
the entire predicate could be useful. It could be implemented by
backtracking returning state.failed instead of !state.failed, though
putting it in the dfa could be a bit tougher (but doable).
I'm particularly interested in an example of how this could encourage
poor grammar design, as that would be a big fault with the idea.
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090321/0adb4250/attachment.html
More information about the antlr-interest
mailing list