> At 10:42 16/05/2008, Johannes Luber wrote:
>  >Thinking about the "first comes first"-rule precendence in
>  >inheriting the grammars, I came up with a case that doesn't seem 
> to
>  >be supported. If grammar A defines the rules r and s, as does
>  >grammar B, then the rules in B are ignored. What if you want 
> only
>  >the rule s in B instead of s in A taking precedence? Switching 
> the
>  >grammars around doesn't help.
> 
> Bear in mind that I haven't so much as even glanced at the grammar 
> inheritance stuff yet, but assuming it operates similar to general 
> inheritance -- can you factor out one of the rules to a common 
> base grammar?  That ought to sort it out.

It's a hypothetical example where one does not have control over the delegate 
grammars. Any change to them has then to be repeated on local copies, which is 
undesired. The rest is explained in the other reply

Johannes
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to