[antlr-interest] still more => wars ;)

Terence Parr parrt at cs.usfca.edu
Thu Dec 8 14:25:59 PST 2005


Ok, so I not overjoyed with what you guys propose either ;)  Adding  
random new symbols is probably not the answer. :)

How about the following which is identical to what ANTLR v2 does.  To  
get hoisted preds though you'll need the '=>' not '?'.

(...) => 	syntactic predicate
{...} =>	_hoisting_ disambiguating semantic predicate
{...}?		gated semantic predicate

[which is now consistent in terms of whether or not the predicate is  
forced] or flipped and less consistent:

(...) => 	syntactic predicate
{...}?		_hoisting_ disambiguating semantic predicate
{...} =>	gated semantic predicate

or still flipped but what I have implemented already:

(...) => 	syntactic predicate
{...}?		_hoisting_ disambiguating semantic predicate
{...}? =>	gated semantic predicate

I vote for the first syntax.  I could also go with {...}? => for sem  
pred.

Ter


More information about the antlr-interest mailing list