From d8eb50a7960edd35c74885d0ba7897f35c1b1eed Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 19 Jan 2023 17:43:29 +0200 Subject: [IPL/T] Values now have a return value which can be parsed easily --- .../Transpiler/src/Value/Integer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp index d7f70e3..01bbe54 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp @@ -5,6 +5,10 @@ std::string Integer::Visit(LLVMVisitor& visitor) const { return visitor.Visit(*this); } +Value::T_Primitive Integer::RetType() const { + return Value::T_integer; +} + const int& Integer::get_value() const { return this->value; } -- cgit v1.3.1-23-gd82d