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

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