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: Paul Eggert
Subject: Re: [off-topic] flex/bison compatibility issues using C++
Date: Wed, 02 Jun 2004 21:29:39 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

"Josh Shinavier" <address@hidden> writes:

> 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 need my instructor to be able to compile the parser on his
> machine.

I'm afraid that there's no single set of instructions that will work
with C++ for all versions of Bison and/or Yacc.




reply via email to

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