[antlr-interest] [SPAM] Optional expression rule alternative

Olivier Lefevre lefevrol at yahoo.com
Fri Feb 11 09:34:47 PST 2011


Is it possible to have a rule like this in ANTLR?

   rule[boolean z] : if (z) then rule1 else rule2 ;

Thanks,

-- O.L.





More information about the antlr-interest mailing list