[antlr-interest] optional rule refs

Hardy, Stephen Stephen.Hardy at digi.com
Thu Aug 23 14:34:39 PDT 2007


Terence,

I'm glad you are adding this feature.  The ?: operator is all over my
tree parser code like a rash, so I would certainly appreciate the
improved tidiness.

 
> I propose that all refs to rule properties become the equivalent of:
> 
> $rr!=null?$rr.property:null
> 

Regards,
SJH


More information about the antlr-interest mailing list