[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to free symbols during error recovery
From: |
Akim Demaille |
Subject: |
Re: How to free symbols during error recovery |
Date: |
Fri, 08 Oct 2004 14:41:36 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
>>> "Laurence" == Laurence Finston <address@hidden> writes:
>> Again, I'm not taking _at all_ about error recovery :)
> I don't understand. I'm talking about destroying objects when they
> are popped from the stack, which happens when parse errors occur.
Parse error != error recovery.
But maybe you wrote this sentence before the following one which was
above in your answer:
> I've been assuming that when the `error' token isn't used anywhere,
> `yyparse()' just returns 1 right away, without popping states from
> the stack. It just occurred to me that this might not be the case.
It is not, indeed.
> In other cases, I don't need a destructor because, like Oliver, I
> take care of allocating and freeing memory by hand. If I'm missing
> something here, please explain it.
You don't seem to _need_ it, but I think you want it.
- Re: How to free symbols during error recovery, (continued)
- Re: How to free symbols during error recovery, Oliver Boris Fischer, 2004/10/07
- Re: How to free symbols during error recovery, Laurence Finston, 2004/10/08
- Re: How to free symbols during error recovery, Akim Demaille, 2004/10/08
- Re: How to free symbols during error recovery, Laurence Finston, 2004/10/08
- Re: How to free symbols during error recovery, Akim Demaille, 2004/10/08
- Re: How to free symbols during error recovery, Laurence Finston, 2004/10/08
- Re: How to free symbols during error recovery,
Akim Demaille <=
- Re: How to free symbols during error recovery, Laurence Finston, 2004/10/08
- Re: How to free symbols during error recovery, Akim Demaille, 2004/10/08
- Re: How to free symbols during error recovery, Laurence Finston, 2004/10/08
- Re: How to free symbols during error recovery, Akim Demaille, 2004/10/08
- Re: How to free symbols during error recovery, Oliver Boris Fischer, 2004/10/08
- Re: How to free symbols during error recovery, Akim Demaille, 2004/10/08
- Re: How to free symbols during error recovery, Oliver B. Fischer, 2004/10/08
- Re: How to free symbols during error recovery, Akim Demaille, 2004/10/11
- Re: How to free symbols during error recovery, Oliver Boris Fischer, 2004/10/12