help-bison
[Top][All Lists]
Advanced

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

Re: bison and C++


From: Satya
Subject: Re: bison and C++
Date: Tue, 12 Dec 2006 18:11:17 -0600

Putting the in the .y file would not suffice, as those functions need
to be put in a file compiled by the C++ associated C-compiler;


Well, when Bison generates an xyz.tab. c file, it can be compiled by a C++
compiler. Thats the idea.

one
cannot then use C++ containers. If the C-parser is compiled using a C+
+ compiler, would it succeed, in view of that support for this has
been terminated, then the parser stack will not invoke copy
constructors when reallocating: it will only work with POD semantic
types.


The parser stack will not allow any special types anyway. You can put only
*pointers* to STL or user defined data types on the stack. I don't see how
reallocation of the stack can affect this. Maybe I am missing something. Can
you elaborate pls.. (maybe an example?)

satya.
--
Work expands to fill the time available for its completion (Parkison's law).
http://cs.uic.edu/~spopuri


reply via email to

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