bug-bison
[Top][All Lists]
Advanced

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

Re: [off-topic] flex/bison compatibility issues using C++


From: Hans Aberg
Subject: Re: [off-topic] flex/bison compatibility issues using C++
Date: Thu, 3 Jun 2004 19:20:46 +0200

At 21:29 -0700 2004/06/02, Paul Eggert wrote:
>> I know this isn't about a "bug" per se, but do any of you know of a
>> way to C++ compile a flex/bison parser *without* modifying
>> bison.simple?
>
>Recent versions of bison no longer have a bison.simple; they have a
>yacc.c.  If you don't want to worry about growing the stack when it
>overflows, and if your %union contains objects that don't need
>destructors, then it should just work "out of the box".  You can try
>it yourself wwith the latest test version:
>
>ftp://alpha.gnu.org/gnu/bison/bison-1.875d.tar.gz
>
>There is also a C++ skeleton called lalr1.cc that is also supposed to
>work, though it hasn't been tested as much.

I could not get the lalr1.cc skeleton file working with C++, so I wrote my
own C++ skeleton file (I use Bison 1.75, I think). It and instructions on
how to use it are posted in the Bison-Patches list.

  Hans Aberg






reply via email to

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