bug-bison
[Top][All Lists]
Advanced

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

Re: %destructor and stack overflow


From: Hans Aberg
Subject: Re: %destructor and stack overflow
Date: Thu, 28 Apr 2005 23:21:44 +0200

At 22:47 +0200 2005/04/28, Marcus Holland-Moritz wrote:
 > So if you get a stack overflow error, what do you want to happen?
 Clearly, the parser must be taken down. You want it then to done so
 that stack cleanup takes place. Right? Possibly, the same cleanup
 actions as those in %destructor should be used.

Yes, that's exactly what I'm talking about.

When the parser detects a stack overflow, it should call
the cleanup actions defined via %destructor for all symbols
on the stack (and the symbol causing the overflow) before
it returns.

So then we know what you want to have. Here, I must ask Paul or Akim (who wrote the %destructor feature) help me out.
--
  Hans Aberg




reply via email to

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