[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prologue not in y.tab.h with bison 2.4.1
From: |
Joel E. Denny |
Subject: |
Re: prologue not in y.tab.h with bison 2.4.1 |
Date: |
Fri, 6 Nov 2009 14:47:23 -0500 (EST) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
On Fri, 6 Nov 2009, address@hidden wrote:
> On Fri, Nov 06, 2009 at 10:38:19AM -0500, Joel E. Denny wrote:
> > What Bison release were you using previously? What skeletons are you
> > using? If the answer is 2.3 or earlier with C++ or GLR skeletons, then
> > see the 2.3a entry in NEWS. This change is permanent and intentional.
> > In hindsight, it has caused backward compatibility problems for too many
> > users, but many users have now adjusted, so it's too late to revert. I
> > apologize for the trouble.
>
> I was using 2.3 (with glr), I'll have a look at the NEWS, thanks for
> pointing it out. And I'll adjust my setup then to work both with 2.3 and
> 2.4 :-)
It sounds like you already know this, but I should point out for the
record that %code was not available in 2.3. Thus, projects that need
compatibility with 2.3 and later will have to manually copy the
pre-prologue into files that include the generated parser header file.
Of course, to avoid duplicate code, the pre-prologue can be moved to its
own header file.