Hi!

Trying to find information about C++ exceptions in semantic actions, with no
results.
Is there any Bison %Decl which allows to move parse stack outside yyparse(),
to destroy a stack values after an exception was thrown within semantic
action!?

something like:

yyparse_stack my_stack;
try
{
    error = yyparse(&my_stack);
}
catch (const std::exception &)
{
    yydestroy_stack(&my_stack);
}

PS: %skeleton "lalr1.cc"

parser::~parser ()
{
}
_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to