Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / main.cpp
blob: 088f4d03d5727486e7b83c210bae34f71db71eab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <deque>
#include "LLVMVisitor/LLVMVisitor.h"

int main() {
	LLVMVisitor visitor("testout.ll");
	std::deque<Value*> nodes = { new BuiltInFunction("+", { new Integer(123), new Integer(567) }) };
	for (Value* n : nodes) {
		n->Visit(visitor);
	}
}