From b8d2ea4f75c21b46f37310e94d2409290b35469a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 8 Feb 2023 00:20:02 +0200 Subject: [IPL/T] Moved Funcall out of it's folder --- .../Transpiler/src/Value/Funcall.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp new file mode 100644 index 0000000..47a19af --- /dev/null +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/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