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.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h index 5afc51d..30dda60 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h @@ -1,20 +1,19 @@ #ifndef VALUE_FUNCALL #define VALUE_FUNCALL -#include +#include #include "../Value.h" class Funcall : public Value { std::string funName; - std::deque args; + std::vector args; public: const std::string& get_funname() const; - const std::deque& get_args() const; + const std::vector& get_args() const; - std::string Visit(LLVMVisitor& visitor) const override; - T_Primitive RetType() const override; + LLVMRet Visit(LLVMVisitor& visitor) const override; - Funcall(std::string funName, std::deque args); + Funcall(std::string funName, std::vector args); ~Funcall() override = default; }; -- cgit v1.3.1-26-gb76a