Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / main.cpp
diff options
context:
space:
mode:
Commit8f41c57ff12fa72693016b75fec63bb86ae6560f (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-01-18 11:51:57 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-01-18 11:51:57 +0200
Filesb308172d90c6d70fe8268a960a7a8ded8466d75d /Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp
uni-projects-8f41c57ff12fa72693016b75fec63bb86ae6560f.tar
uni-projects-8f41c57ff12fa72693016b75fec63bb86ae6560f.tar.gz
uni-projects-8f41c57ff12fa72693016b75fec63bb86ae6560f.zip
Parentefbc9d2a15ac6d21caf9cb87e7e913e35f48e391 (diff)
[IPL/T] Implemented initial structure with Integer data type
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);
+ }
+}