[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison and C++ exceptions
From: |
Sergey Klimkin |
Subject: |
bison and C++ exceptions |
Date: |
Tue, 24 May 2011 22:32:15 +0400 |
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 ()
{
}
- bison and C++ exceptions,
Sergey Klimkin <=