Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Function / Function.cpp
diff options
context:
space:
mode:
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Function.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Function.cpp
new file mode 100644
index 0000000..9e35eab
--- /dev/null
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Function.cpp
@@ -0,0 +1,12 @@
+#include "Function.h"
+#include "../../LLVMVisitor/LLVMVisitor.h"
+
+const std::string& Function::get_name() const {
+ return name;
+}
+
+const std::deque<Value*> Function::get_args() const {
+ return args;
+}
+
+Function::Function(std::string name, std::deque<Value*> args) : name(name), args(args) {}