- Removed exception handlers in ::infixParse, thereby relying on the caller to
  set up appropriate handling.
This commit is contained in:
Paul Beckingham 2014-05-25 14:26:20 -04:00
parent d79c86ebb5
commit d62c4428a9

View file

@ -381,25 +381,11 @@ 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; int i = 0;
parseLogical (infix, i); parseLogical (infix, i);
} }
// TODO Remove handlers?
catch (const std::string& error)
{
std::cerr << error << "\n";
}
catch (...)
{
std::cerr << "Unknown error.\n";
}
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Logical --> Regex {( "and" | "or" | "xor" ) Regex} // Logical --> Regex {( "and" | "or" | "xor" ) Regex}
bool Eval::parseLogical ( bool Eval::parseLogical (