Eval: Removed ::ambiguity
This commit is contained in:
10
src/Eval.cpp
10
src/Eval.cpp
@@ -104,8 +104,7 @@ static bool namedConstants (const std::string& name, Variant& value)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Eval::Eval ()
|
||||
: _ambiguity (true)
|
||||
, _debug (false)
|
||||
: _debug (false)
|
||||
{
|
||||
addSource (namedConstants);
|
||||
}
|
||||
@@ -219,12 +218,6 @@ void Eval::evaluateCompiledExpression (Variant& v)
|
||||
evaluatePostfixStack (_compiled, v);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Eval::ambiguity (bool value)
|
||||
{
|
||||
_ambiguity = value;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Eval::debug (bool value)
|
||||
{
|
||||
@@ -418,7 +411,6 @@ void Eval::evaluatePostfixStack (
|
||||
/*
|
||||
case Lexer::Type::uuid:
|
||||
case Lexer::Type::hex:
|
||||
case Lexer::Type::list:
|
||||
case Lexer::Type::url:
|
||||
case Lexer::Type::pair:
|
||||
case Lexer::Type::separator:
|
||||
|
||||
@@ -47,7 +47,6 @@ public:
|
||||
void compileExpression (const std::string&);
|
||||
void compileExpression (const std::vector <std::pair <std::string, Lexer::Type>>&);
|
||||
void evaluateCompiledExpression (Variant&);
|
||||
void ambiguity (bool);
|
||||
void debug (bool);
|
||||
|
||||
static std::vector <std::string> getOperators ();
|
||||
@@ -73,7 +72,6 @@ private:
|
||||
|
||||
private:
|
||||
std::vector <bool (*)(const std::string&, Variant&)> _sources;
|
||||
bool _ambiguity;
|
||||
bool _debug;
|
||||
std::vector <std::pair <std::string, Lexer::Type>> _compiled;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user