Implements string evaluation and concat

This commit is contained in:
2019-05-25 16:15:20 +02:00
parent b536187593
commit 0205b92ae6
10 changed files with 123 additions and 6 deletions

View File

@@ -5,6 +5,7 @@
#include "../../ScriptType.hpp"
#include "../EvaluationException.hpp"
#include <string>
#include <sstream>
class EvalValue{
public:
@@ -57,6 +58,12 @@ public:
return false;
return this->EvaluateBool() == b->EvaluateBool();
};
std::string EvaluateString() final{
std::ostringstream strs;
strs << _value;
return strs.str();
}
};
#endif //PORYGONLANG_EVALVALUE_HPP