From 8f41c57ff12fa72693016b75fec63bb86ae6560f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 18 Jan 2023 11:51:57 +0200 Subject: [IPL/T] Implemented initial structure with Integer data type --- .../Transpiler/src/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp (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 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 +#include +#include "LLVMVisitor/LLVMVisitor.h" + +int main() { + LLVMVisitor visitor("testout.ll"); + std::deque nodes = { new Integer(123) }; + for (Value* n : nodes) { + n->Visit(visitor); + } +} -- cgit v1.3.1-23-gd82d