Implements variable usage, tweaks and fixes for variable assignment

This commit is contained in:
2019-05-30 15:23:48 +02:00
parent 257eb942c7
commit 6fad5a0a7d
17 changed files with 145 additions and 4 deletions

View File

@@ -50,6 +50,10 @@ public:
strs << _value;
return strs.str();
}
EvalValue* Clone() final{
return new IntegerEvalValue(_value);
}
};
class FloatEvalValue : public NumericEvalValue{
@@ -74,6 +78,10 @@ public:
strs << _value;
return strs.str();
}
EvalValue* Clone() final{
return new FloatEvalValue(_value);
}
};
#endif //PORYGONLANG_NUMERICEVALVALUE_HPP