[antlr-interest] Grammar inheritance and parser members

Andrey Timoshenkov tas at ultersys.ru
Tue Jun 13 06:51:56 PDT 2006


Hello all.

I have the following problem with ANTLR 2.7.5. I define 2 grammars where 
one inherits the other one. Both grammars define "additional members" as 
described in C++ template grammar. However "expanded" grammar includes 
only members defined in the second grammar. Members from the inherited 
grammar are absent which causes compilation errors in inherited actions.

Is it possible to include both parser members in the resulting parser class?

Thank you in advance.
Andrey Timoshenkov


More information about the antlr-interest mailing list