[antlr-interest] Duplicate members when generating code with 2 import levels in Java with ANTLR-3.1.1
lgcraymer at yahoo.com
Mon Oct 27 21:50:04 PDT 2008
Interesting. I thought that you just imported the production methods, but if you truly support polymorphism, then rules are imported not just on the basis of their names but on their signatures as well. Somehow I missed that in the code.
Are you sure that grammar composition does not look more like module importation?
----- Original Message ----
> From: Terence Parr <parrt at cs.usfca.edu>
> To: antlr-interest Interest <antlr-interest at antlr.org>
> Sent: Monday, October 27, 2008 7:15:10 PM
> Subject: Re: [antlr-interest] Duplicate members when generating code with 2 import levels in Java with ANTLR-3.1.1
> On Oct 27, 2008, at 5:43 PM, Loring Craymer wrote:
> > Gavin--
> > I think that your analogy is way off. The ANTLR 3 composition looks
> > much more like Python's "import module" than it does OO inheritance.
> actually, i designed it to be polymorphic and everything; should be
> multiple inheritance exactly. I impl with delegation though not
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
More information about the antlr-interest