bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prologue alternatives


From: Joel E. Denny
Subject: Re: prologue alternatives
Date: Sat, 16 Sep 2006 18:58:55 -0400 (EDT)

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

[Prev in Thread] Current Thread [Next in Thread]