[antlr-interest] Do u use Grammar Inheritance?

Scott Stanchfield scott at javadude.com
Fri Jun 3 04:55:27 PDT 2005


Personally, I'd rather think of it as "Grammar Rule Delegation", and I think
there are enough instances of common structures that it's a useful feature.

(I loathe implementation inheritance in general; delegation is a clear
winner both at compile and runtime...)

Perhaps we're just looking at things the wrong way. Maybe all we really need
is an include mechanism, where common rules can be included, and those which
we would override are only in the separate grammars?

Later,
-- Scott





More information about the antlr-interest mailing list