From 2589290a7dc34c5f6d1cfc48ae8c6adf708729f2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 11 Feb 2023 15:38:33 +0200 Subject: [IPL/T] Finished grammar and makefile compilation --- .../Implementation of Programming Languages/Transpiler/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp') 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 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); -- cgit v1.3.1-23-gd82d