[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory Leaks
From: |
Paulo J. Matos |
Subject: |
Re: Memory Leaks |
Date: |
Sat, 18 Nov 2006 16:39:32 +0000 |
On 11/13/06, Hans Aberg <address@hidden> 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