Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Function / Funcall.h
diff options
context:
space:
mode:
Commit4d359b9c16b01847b26d6827e137f680c65969f2 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-02-07 20:06:31 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-02-07 20:06:31 +0200
Files2af4cf7c92237f1a55550cd8866e8bcb0b51b87c /Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Funcall.h
uni-projects-4d359b9c16b01847b26d6827e137f680c65969f2.tar
uni-projects-4d359b9c16b01847b26d6827e137f680c65969f2.tar.gz
uni-projects-4d359b9c16b01847b26d6827e137f680c65969f2.zip
Parent38c4a1355cb573d47c3e26f83ca8e916b62c80d1 (diff)
[IPL/T] Overhauled how functions are handled, added list type
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 <deque>
+#include <vector>
#include "../Value.h"
class Funcall : public Value {
std::string funName;
- std::deque<Value*> args;
+ std::vector<Value*> args;
public:
const std::string& get_funname() const;
- const std::deque<Value*>& get_args() const;
+ const std::vector<Value*>& 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<Value*> args);
+ Funcall(std::string funName, std::vector<Value*> args);
~Funcall() override = default;
};