Eval
- Removed exception handlers in ::infixParse, thereby relying on the caller to set up appropriate handling.
This commit is contained in:
18
src/Eval.cpp
18
src/Eval.cpp
@@ -382,22 +382,8 @@ void Eval::evaluatePostfixStack (
|
|||||||
void Eval::infixParse (
|
void Eval::infixParse (
|
||||||
std::vector <std::pair <std::string, Lexer::Type> >& infix) const
|
std::vector <std::pair <std::string, Lexer::Type> >& infix) const
|
||||||
{
|
{
|
||||||
try
|
int i = 0;
|
||||||
{
|
parseLogical (infix, i);
|
||||||
int i = 0;
|
|
||||||
parseLogical (infix, i);
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO Remove handlers?
|
|
||||||
catch (const std::string& error)
|
|
||||||
{
|
|
||||||
std::cerr << error << "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
std::cerr << "Unknown error.\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user