Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / List.cpp
diff options
context:
space:
mode:
1 files changed, 12 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.cpp12
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.cpp
new file mode 100644
index 0000000..63a7e01
--- /dev/null
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.cpp
@@ -0,0 +1,12 @@
+#include "List.h"
+#include "../LLVMVisitor/LLVMVisitor.h"
+
+LLVMRet List::Visit(LLVMVisitor& visitor) const {
+ return visitor.Visit(*this);
+}
+
+const std::vector<Value*>& List::get_value() const {
+ return vals;
+}
+
+List::List(std::vector<Value*> val) : vals(val) {}