Re: switch from byacc to bison

[email protected] (Dave Mitchell) Sat, 14 Feb 2004 13:46:06 +0000
Newsgroups perl.perl5.build
Message-ID <[email protected]>
On Sat, Feb 14, 2004 at 12:02:14PM +0100, Rafael Garcia-Suarez wrote:
> "H.Merijn Brand" <[email protected]> wrote:
> 
> > On Sat 14 Feb 2004 03:33, Dave Mitchell <[email protected]> wrote:
> > > Some notes:
> > > 
> > > Pumpkings: Currently it requires bison 1.875 to rebuild perly.*, although
> > > this restriction has more to do with a lack of testing on my part of other
> > > versions, rather than any intrinsic defect. Probably 1.35 onwards will
> > > work.
> > 
> > Looks fine.
> > 
> > A Question:
> > Will this work backwards to 5.005.x?
> > If so, I guess I can remove all probing for byacc from Configure
> 
> No, because byacc is used to build a2p. (Until now :)

Is that some kind of hint? ;-)

Anyway, I was envisaging that the patch might go into 5.8.x, but it's
definitely too scary for anything earlier. All the old byacc parser
bolierplate code plus all its hacks to make it work under Perl have been
thrown away and replaced with a whole new set of boilerplate code from
bison plus a new set of hacks (not as scary hacks as the old one, as the
new bison with the %pure_parser option doesn't use global vars any more).

Dave.

-- 
Nothing ventured, nothing lost.