Re: Exception safety of generated C++ parser

2012-09-13 Thread Hans Aberg
On 13 Sep 2012, at 22:52, Oleksii Taran wrote: > 13.09.12 19:32, Hans Aberg wrote: >> On 13 Sep 2012, at 17:54, Oleksii Taran wrote: >> >>> 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? >> Yes, th

Re: Exception safety of generated C++ parser

2012-09-13 Thread Oleksii Taran
13.09.12 19:32, Hans Aberg wrote: > On 13 Sep 2012, at 17:54, Oleksii Taran wrote: > >> 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? > Yes, the default stack is std::deque. > >> I >> know about %des

Re: Exception safety of generated C++ parser

2012-09-13 Thread Hans Aberg
On 13 Sep 2012, at 17:54, Oleksii Taran wrote: > 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? Yes, the default stack is std::deque. > I > know about %destructor directive, but it seems irrelevant,

Exception safety of generated C++ parser

2012-09-13 Thread Oleksii Taran
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. -- Best r