[antlr-interest] Grammar Inheritance
jaluber at gmx.de
Wed Jan 16 03:44:04 PST 2008
Axelle Ziegler schrieb:
> That might be a FAQ, but I've been unable to find the answer so far :
> I'd like to have a "base" grammar containing common rules, and several
> "extension" grammars, containing extra rules. It seems grammar
> inheritance should be the solution to my problem, but I'm under the
> impression that this feature has been removed from AntLr v3, and I can't
> really find any documentation on the subject. Is there any equivalent
> feature in AntLRv3 ? If not, is it still possible to use the inheritance
> feature from v2 ?
Only 3.1 will have this feature. If you use the Java target, then you
can use an intermediate build instead of waiting for a release.
More information about the antlr-interest