On Sat, 16 Sep 2006, Joel E. Denny wrote:

> On Sat, 16 Sep 2006, Paul Eggert wrote:

> >     %{ A %}
> >     %union { B }
> >     %{ C %}
> >     %%
> >     D
> >     %%
> >     E
> 
> Let's say A defines YYLTYPE.  Let's say I reorganize my grammar and move 
> or remove B.  Now suddenly the compiler complains that I'm redefining 
> YYLTYPE.  That makes no sense.  What does %union have to do with YYLTYPE?

Replace "move or remove B" with "move B above A".  I got confused.

You might also imagine there was no B to begin with, and then I add one 
to the beginning of the grammar.


Reply via email to