Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Float.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp4
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;
}