|
From: | Oliver Boris Fischer |
Subject: | How to free symbols during error recovery |
Date: | Wed, 06 Oct 2004 17:14:36 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040803 |
Hello,I've written a bison based parser, where I defined YYSTYPE as pointer to a C structure, which I am allocate within lex/flex and free within bison. This seems to work fine if no parser error occurs. But if an error occurs and the parser unwinds its stack, I have no chance to free them.
What is the recommended strategy in such situations? Regards, Oliver Fischer
[Prev in Thread] | Current Thread | [Next in Thread] |