diff options
[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.cpp | 11 |
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); + } +} |
