Implements basic numerical tables
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-09 20:15:09 +02:00
parent ec2419bc7d
commit 081def0be0
21 changed files with 324 additions and 24 deletions

View File

@@ -49,6 +49,10 @@ public:
shared_ptr<EvalValue> Clone() final{
return make_shared<IntegerEvalValue>(_value);
}
std::size_t GetHashCode() final{
return std::hash<long>{}(_value);
}
};
class FloatEvalValue : public NumericEvalValue{
@@ -71,6 +75,10 @@ public:
shared_ptr<EvalValue> Clone() final{
return make_shared<FloatEvalValue>(_value);
}
std::size_t GetHashCode() final{
return std::hash<double >{}(_value);
}
};
#endif //PORYGONLANG_NUMERICEVALVALUE_HPP