On 11/13/06, Hans Aberg <[EMAIL PROTECTED]> wrote:

There is now %destructor to clean up C-code leaks during error
recovery; otherwise, do it by hand in the actions.

What do you mean by error recovery? If the parsing fails?
I still cannot understand when %destructor code is called.

I think the
developers have worked hard to plug the Bison generated parsers. I
don't use C, but C++, in which case one can use language features to
do the cleanup.

I also use C++ (generating C++ lexer and C parser, I find the C++
bison interface incomprehensible). What do you mean by language
features to clean it up?


   Hans Aberg


Regards,

--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK


_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to