help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exception safety of generated C++ parser


From: Oleksii Taran
Subject: Re: Exception safety of generated C++ parser
Date: Wed, 19 Sep 2012 21:35:24 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

19.09.12 17:01, Akim Demaille wrote:
> Le 13 sept. 2012 à 17:54, Oleksii Taran a écrit :
>
>> Hello
>>
>> Does Bison guarantees exception safety in C++ parser, i.e. will it make
>> any clean-up and free memory if an exception is thrown on rule action? I
>> know about %destructor directive, but it seems irrelevant, since
>> destructor code is called only if parser recovers from _syntax_ error.
> hi Oleskii,
>
> Sorry for the delays.
>
> Yes, I agree that the current implementation is not satisfying on this
> regard.  IMHO, the %destructors should be called when an exception is
> rised, exactly as if the parsing was ended on a syntax error.  Would that
> match your expectations?  Would you be ready to try patches we might
> submit?
>

Yeah, sure, that would be nice, I can help with testing

-- 
Best regards,
Oleksii Taran




reply via email to

[Prev in Thread] Current Thread [Next in Thread]