diff options
[IPL/T] Values now have a return value which can be parsed easily
1 files changed, 4 insertions, 0 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp | 4 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp index a286fa2..91268d7 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp @@ -5,6 +5,10 @@ std::string Float::Visit(LLVMVisitor& visitor) const { return visitor.Visit(*this); } +Value::T_Primitive Float::RetType() const { + return Value::T_float; +} + const double& Float::get_value() const { return this->value; } |
