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, 3 insertions, 3 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp6
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp
index e382161..4f2056a 100644
--- a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp
@@ -15,14 +15,14 @@ void freeNodes(Value* v) {
}
int main() {
- LLVMVisitor visitor("testout.ll");
+ LLVMVisitor visitor("transpiled.ll");
std::deque<Value*> nodes = {
- new Funcall("defvar", { new Name("myvar"), new Float(4.956) })
+#include "../build/CLTree.h"
};
for (Value* n : nodes) {
n->Visit(visitor);
}
- // visitor.insertMain();
+ visitor.insertMain();
for (Value* n : nodes)
freeNodes(n);