Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / main.cpp
diff options
context:
space:
mode:
1 files changed, 11 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp11
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp
new file mode 100644
index 0000000..738f18b
--- /dev/null
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp
@@ -0,0 +1,11 @@
+#include <iostream>
+#include <deque>
+#include "LLVMVisitor/LLVMVisitor.h"
+
+int main() {
+ LLVMVisitor visitor("testout.ll");
+ std::deque<Value*> nodes = { new Integer(123) };
+ for (Value* n : nodes) {
+ n->Visit(visitor);
+ }
+}