[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison error handling
From: |
Marco Gerards |
Subject: |
Re: Bison error handling |
Date: |
Wed, 02 Nov 2005 20:22:28 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Marco Gerards <address@hidden> writes:
> The main problem is in case of a syntax error. In that case all of
> the state should be released (free all memory structures). But I have
> no idea how to do that; yyparse just returns an error. I need a way
> to make bison return a valid structure so I can check if parsing
> failed and release all of the memory.
Because the bash people were not able to solve this problem (bash
leaks memory when a syntax error occurs!), I think I should assume I
can't either. So I just use my other solution for now. :-)
--
Marco