On 19 Nov 2006, at 23:36, Joel E. Denny wrote:

The %destructor is only needed with output language C.

Currently, it's also useful for C++.

You mean, of one writes code in the common C/C++ subset. :-)

I think you, Akim, and I have all agreed that semantic types cannot have C++ destructors given Bison's current C++ skeletons. You need % destructor
instead.  That's what I'm referring to.

Not anymore:

I think that the %define tweak that enables one to include code enables me to use my polymorphic C++ type, which I have used for several years my own Bison tweaks. I am looking at this around these days, though reality prevents me to do much work on it. I still need a tweaked skeleton file, but it need just some code placement macros. This is for untyped .y Bison; to type it, I need another tweak. Basically, a way to trigger the Bison type system, plus a macro to select the correct type in the runtime object.

  Hans Aberg




Reply via email to