help-bison
[Top][All Lists]
Advanced

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

Re: %union with STL


From: Hans Aberg
Subject: Re: %union with STL
Date: Wed, 27 May 2009 23:45:21 +0200

On 27 May 2009, at 20:52, Akim Demaille wrote:

You will be able to do that in Bison 2.6.  A preview is available at

http://www.lrde.epita.fr/~akim/download/bison-2.4.266-4ff3b.tar.bz2

Using that version, you can use actual objects (not pointers to), as in the attached sample file.
...
<variant.yy>

Looks nice, but I got linker errors - a header missing somewhere :-). I used
  bison variant.yy
  gcc variant.tab.cc -o variant > error.txt 2>&1

  bison --version
  bison (GNU Bison) 2.4.266-4ff3b
with gcc of Xcode 3.1.2, Mac OS X 10.5.7 PPC G4:
  gcc --version
  powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)

  Hans


Attachment: error.txt
Description: Text document





reply via email to

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