Ter 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? --Loring ----- Original Message ---- > From: Terence Parr <[EMAIL PROTECTED]> > To: antlr-interest Interest <[EMAIL PROTECTED]> > 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 > inheritance. > > Ter > > > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
