From ab1d1ecba4f2562a8b81d887d08370d5fcf0921d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 29 Jan 2023 20:58:52 +0200 Subject: [IPL/T] Added current progress of implementing functions --- .../Transpiler/src/Value/Function/Funcall.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h (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 new file mode 100644 index 0000000..5afc51d --- /dev/null +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h @@ -0,0 +1,21 @@ +#ifndef VALUE_FUNCALL +#define VALUE_FUNCALL + +#include +#include "../Value.h" + +class Funcall : public Value { + std::string funName; + std::deque args; +public: + const std::string& get_funname() const; + const std::deque& get_args() const; + + std::string Visit(LLVMVisitor& visitor) const override; + T_Primitive RetType() const override; + + Funcall(std::string funName, std::deque args); + ~Funcall() override = default; +}; + +#endif -- cgit v1.3.1-26-gb76a