Ter--

Should it be an error, though?  I do not see a strong likelihood of circular 
dependencies, but if we extend Laurent's example to have another 
subgrammar (imported by C) P3 that imports P1 but does not overlap P2, 
shouldn't P2 and P3 use the same instance of P1 to avoid a similar collision?  
It seems to me that this would be quite common when P1 is, say, an expression 
grammar and that the composition machinery should make this "just work".

Cheers!

--Loring



----- Original Message ----
> From: Terence Parr <[EMAIL PROTECTED]>
> To: Loring Craymer <[EMAIL PROTECTED]>
> Cc: Laurent Caillette <[EMAIL PROTECTED]>; antlr-interest Interest <[EMAIL 
> PROTECTED]>
> Sent: Monday, October 27, 2008 4:09:53 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 4:04 PM, Loring Craymer wrote:
> 
> > Ter--
> >
> > Just my 2 cents, but shouldn't duplicate imports be supported at the  
> > language level, as is true for Java, C#, and even C/C++ with the  
> > usual #ifdef wrapping?  It seems to me that leaving dependency  
> > management to the user limits the convenience of composition.
> 
> hi. just haven't had a chance to write the graph dependency checker,  
> looking for duplicates. It should really give an error.
> 
> Ter



      

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to