Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / List.h
diff options
context:
space:
mode:
1 files changed, 17 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.h17
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.h
new file mode 100644
index 0000000..770b87b
--- /dev/null
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/List.h
@@ -0,0 +1,17 @@
+#ifndef VALUE_LIST
+#define VALUE_LIST
+
+#include <vector>
+#include "Value.h"
+
+class List : public Value {
+ std::vector<Value*> vals;
+public:
+ LLVMRet Visit(LLVMVisitor& visitor) const override;
+ const std::vector<Value*>& get_value() const;
+
+ List(std::vector<Value*> val);
+ ~List() override = default;
+};
+
+#endif