help-bison
[Top][All Lists]
Advanced

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

Re: No destructors called after a successful parse!


From: Akim Demaille
Subject: Re: No destructors called after a successful parse!
Date: Fri, 16 May 2003 09:22:15 +0200
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux)

 Andrew> hi
 Andrew> correct me if im wrong but the %destructor is not designed for
 Andrew> successful parses. the %destructor rule is only called if that token
 Andrew> was popped from the stack after an error.

 Andrew> so basically you have to do all the destructing by hand(in your rules)
 Andrew> when parsing does not encounter errors. 

Correct.  %destructor is there only for cases where you just cannot
insert code.




reply via email to

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