bison-patches
[Top][All Lists]
Advanced

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

Re: C++ / multiple instances / iostreams


From: Hans Aberg
Subject: Re: C++ / multiple instances / iostreams
Date: Mon, 19 Jul 2004 19:23:23 +0200

At 22:26 +0200 2004/07/18, Oliver Kowalke wrote:
>Am Sonntag, 18. Juli 2004 19:53 schrieben Sie:
>> Then, for that situation I made a C++ parser. The details are in the
>> Patches-Bison list. I need it, because, instead of a union type, I use a
>> polymorphic (virtual) class hierarchy. It does not work in a multi-threaded
>> environment; in order to achieve that, simply alter the skeleton file so
>> that the parser stack & other data are in the parser function.
>
>I'm using debian (unstable) and I've installed bison 1.875a. It comes with an
>skelteon file (lalr1.cc) which seams to be intended to support c++. Is this
>your patch or does some other patches for c++ support exist?

No, the C++ skeleton I made is only published in the Bison-Patches list. A
long time ago Akim Demaille put his students to write a C++ skeleton file,
which is the one you got with the distribution. But, as I could not get it
working, I wrote my own. Right now, nobody is working on the C++ issue.

But you need only this skeleton file if you use a semantic type with
non-POD data members; otherwise the compiling the C output as C++ will
suffice. In particular, if you use the Bison %union feature, then you can
compile C as C++.

  Hans Aberg






reply via email to

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