- Cleaned up debug FILTER diagnostics.
This commit is contained in:
Paul Beckingham 2014-05-26 12:16:44 -04:00
parent 2030df8563
commit bba0b75a3b
2 changed files with 8 additions and 9 deletions

View file

@ -130,15 +130,15 @@ void Eval::evaluateInfixExpression (const std::string& e, Variant& v) const
// Parse for syntax checking and operator replacement.
if (_debug)
context.debug ("Infix tokens " + dump (tokens));
context.debug ("FILTER Infix " + dump (tokens));
infixParse (tokens);
if (_debug)
context.debug ("Parsed tokens " + dump (tokens));
context.debug ("FILTER Infix parsed " + dump (tokens));
// Convert infix --> postfix.
infixToPostfix (tokens);
if (_debug)
context.debug ("Postfix tokens " + dump (tokens));
context.debug ("FILTER Postfix " + dump (tokens));
// Call the postfix evaluator.
evaluatePostfixStack (tokens, v);
@ -157,7 +157,7 @@ void Eval::evaluatePostfixExpression (const std::string& e, Variant& v) const
tokens.push_back (std::pair <std::string, Lexer::Type> (token, type));
if (_debug)
context.debug ("Postfix tokens " + dump (tokens));
context.debug ("FILTER Postfix " + dump (tokens));
// Call the postfix evaluator.
evaluatePostfixStack (tokens, v);
@ -176,15 +176,15 @@ void Eval::compileExpression (const std::string& e)
// Parse for syntax checking and operator replacement.
if (_debug)
context.debug ("Filter infix tokens " + dump (_compiled));
context.debug ("FILTER Infix " + dump (_compiled));
infixParse (_compiled);
if (_debug)
context.debug ("Filter parsed tokens " + dump (_compiled));
context.debug ("FILTER Infix parsed " + dump (_compiled));
// Convert infix --> postfix.
infixToPostfix (_compiled);
if (_debug)
context.debug ("Postfix tokens " + dump (_compiled));
context.debug ("FILTER Postfix " + dump (_compiled));
}
////////////////////////////////////////////////////////////////////////////////
@ -840,7 +840,7 @@ std::string Eval::dump (
output += c.colorize (i->first);
}
return output + "\n";
return output;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -24,7 +24,6 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <iostream> // TODO Remove
#include <cmake.h>
#include <Context.h>
#include <Eval.h>