From 4d359b9c16b01847b26d6827e137f680c65969f2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 7 Feb 2023 20:06:31 +0200 Subject: [IPL/T] Overhauled how functions are handled, added list type --- .../Transpiler/src/Value/Function/UserFunction.cpp | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.cpp (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.cpp') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.cpp deleted file mode 100644 index a9841d3..0000000 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "UserFunction.h" -#include "../../LLVMVisitor/LLVMVisitor.h" - -std::string UserFunction::Visit(LLVMVisitor& visitor) const { - return visitor.Visit(*this); -} - -Value::T_Primitive UserFunction::RetType() const { - if (body.empty()) - return T_void; - return body.back()->RetType(); -} - -UserFunction::UserFunction(std::string name, std::deque args, std::deque body) : Function(name, args), body(body) {} -- cgit v1.3.1-23-gd82d