Re: yacc question

miano@colosseumbuilders.com
30 Apr 1999 22:49:58 -0400

          From comp.compilers

Related articles
yacc question levap@rcn.com (Pavel Grinfeld) (1999-04-29)
Re: yacc question miano@colosseumbuilders.com (1999-04-30)
Re: yacc question rkrayhawk@aol.com (1999-05-03)
| List of all articles for this month |

From: miano@colosseumbuilders.com
Newsgroups: comp.compilers
Date: 30 Apr 1999 22:49:58 -0400
Organization: EarthLink Network, Inc.
References: 99-04-103
Keywords: yacc, C++

Pavel Grinfeld <levap@rcn.com> wrote:


>I'm using C++. I have defined a custom type YYSTYPE which is a class
>containing a bunch of other classed with constructors and
>destructors. I would like to rely on instances of this class calling
>their distructors when they "go out of scope". To put it another way,
>I need freshly initialized instances of this class whenever I need
>another variable of this type. From what I understand this does not
>happen.


Create your own parse stack using the standard template library and do your
own push and pops on the parse stack yourself.


John - N8086N











Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.