bug-bison
[Top][All Lists]
Advanced

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

Bison compile C as C++


From: Hans Aberg
Subject: Bison compile C as C++
Date: Wed, 28 Jul 2004 19:34:21 +0200

The compile the Bison C parser as C++ can perhaps be fixed, so that it
always works under C++, not only when the copy constructors are trivial (as
they must be when using the %union option):

This can be done if the C stack is never copied, but merely allocates new
chunks. Then the stack elements must be accessed via special functions. It
is usually tricky do build such interfaces in C, but it could be that it is
easy, in view of that Bison anyhow writes a C file.

Perhaps at least worth a note in the todo list.

  Hans Aberg






reply via email to

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