[antlr-interest] Is this synpred valid?
stevagewp at gmail.com
Sun Feb 17 05:31:32 PST 2008
On 2/17/08, Bertalan Fodor <lilypondtool at organum.hu> wrote:
> I'm curious if this form of syntactical predicates is valid and means
> what I mean (I know it gets compiled and seems to work, but I would like
> to make it sure):
> body: ((definition)=>definition)* sequence
> That means, definition's checking for syntactical predicate will run for
> all iterations.
I use this form of syntactic predicate very frequently. I think it's
not strictly needed in most cases (the default is to loop), but can be
used to prevent unwanted looping.
More information about the antlr-interest