mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
Eval: Removed ::ambiguity
This commit is contained in:
parent
987fab388d
commit
6276241ef0
2 changed files with 1 additions and 11 deletions
10
src/Eval.cpp
10
src/Eval.cpp
|
@ -104,8 +104,7 @@ static bool namedConstants (const std::string& name, Variant& value)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Eval::Eval ()
|
Eval::Eval ()
|
||||||
: _ambiguity (true)
|
: _debug (false)
|
||||||
, _debug (false)
|
|
||||||
{
|
{
|
||||||
addSource (namedConstants);
|
addSource (namedConstants);
|
||||||
}
|
}
|
||||||
|
@ -219,12 +218,6 @@ void Eval::evaluateCompiledExpression (Variant& v)
|
||||||
evaluatePostfixStack (_compiled, v);
|
evaluatePostfixStack (_compiled, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
void Eval::ambiguity (bool value)
|
|
||||||
{
|
|
||||||
_ambiguity = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void Eval::debug (bool value)
|
void Eval::debug (bool value)
|
||||||
{
|
{
|
||||||
|
@ -418,7 +411,6 @@ void Eval::evaluatePostfixStack (
|
||||||
/*
|
/*
|
||||||
case Lexer::Type::uuid:
|
case Lexer::Type::uuid:
|
||||||
case Lexer::Type::hex:
|
case Lexer::Type::hex:
|
||||||
case Lexer::Type::list:
|
|
||||||
case Lexer::Type::url:
|
case Lexer::Type::url:
|
||||||
case Lexer::Type::pair:
|
case Lexer::Type::pair:
|
||||||
case Lexer::Type::separator:
|
case Lexer::Type::separator:
|
||||||
|
|
|
@ -47,7 +47,6 @@ public:
|
||||||
void compileExpression (const std::string&);
|
void compileExpression (const std::string&);
|
||||||
void compileExpression (const std::vector <std::pair <std::string, Lexer::Type>>&);
|
void compileExpression (const std::vector <std::pair <std::string, Lexer::Type>>&);
|
||||||
void evaluateCompiledExpression (Variant&);
|
void evaluateCompiledExpression (Variant&);
|
||||||
void ambiguity (bool);
|
|
||||||
void debug (bool);
|
void debug (bool);
|
||||||
|
|
||||||
static std::vector <std::string> getOperators ();
|
static std::vector <std::string> getOperators ();
|
||||||
|
@ -73,7 +72,6 @@ private:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector <bool (*)(const std::string&, Variant&)> _sources;
|
std::vector <bool (*)(const std::string&, Variant&)> _sources;
|
||||||
bool _ambiguity;
|
|
||||||
bool _debug;
|
bool _debug;
|
||||||
std::vector <std::pair <std::string, Lexer::Type>> _compiled;
|
std::vector <std::pair <std::string, Lexer::Type>> _compiled;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue