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/Funcall.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.cpp') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.cpp index e69de29..df88001 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.cpp @@ -0,0 +1,16 @@ +#include "Funcall.h" +#include "../../LLVMVisitor/LLVMVisitor.h" + +const std::string& Funcall::get_funname() const { + return funName; +} + +const std::vector& Funcall::get_args() const { + return args; +} + +LLVMRet Funcall::Visit(LLVMVisitor& visitor) const { + return visitor.Visit(*this); +} + +Funcall::Funcall(std::string funName, std::vector args) : funName(funName), args(args) {} -- cgit v1.3.1-23-gd82d