mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Eval
- Cleaned up debug FILTER diagnostics.
This commit is contained in:
parent
2030df8563
commit
bba0b75a3b
2 changed files with 8 additions and 9 deletions
16
src/Eval.cpp
16
src/Eval.cpp
|
@ -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 ("[1;37;42mFILTER[0m Infix " + dump (tokens));
|
||||
infixParse (tokens);
|
||||
if (_debug)
|
||||
context.debug ("Parsed tokens " + dump (tokens));
|
||||
context.debug ("[1;37;42mFILTER[0m Infix parsed " + dump (tokens));
|
||||
|
||||
// Convert infix --> postfix.
|
||||
infixToPostfix (tokens);
|
||||
if (_debug)
|
||||
context.debug ("Postfix tokens " + dump (tokens));
|
||||
context.debug ("[1;37;42mFILTER[0m 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 ("[1;37;42mFILTER[0m 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 ("[1;37;42mFILTER[0m Infix " + dump (_compiled));
|
||||
infixParse (_compiled);
|
||||
if (_debug)
|
||||
context.debug ("Filter parsed tokens " + dump (_compiled));
|
||||
context.debug ("[1;37;42mFILTER[0m Infix parsed " + dump (_compiled));
|
||||
|
||||
// Convert infix --> postfix.
|
||||
infixToPostfix (_compiled);
|
||||
if (_debug)
|
||||
context.debug ("Postfix tokens " + dump (_compiled));
|
||||
context.debug ("[1;37;42mFILTER[0m Postfix " + dump (_compiled));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -840,7 +840,7 @@ std::string Eval::dump (
|
|||
output += c.colorize (i->first);
|
||||
}
|
||||
|
||||
return output + "\n";
|
||||
return output;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <iostream> // TODO Remove
|
||||
#include <cmake.h>
|
||||
#include <Context.h>
|
||||
#include <Eval.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue