Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / List.cpp
blob: 63a7e013e3465b1aabca0ca6c196690f3fcf85cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "List.h"
#include "../LLVMVisitor/LLVMVisitor.h"

LLVMRet List::Visit(LLVMVisitor& visitor) const {
	return visitor.Visit(*this);
}

const std::vector<Value*>& List::get_value() const {
	return vals;
}

List::List(std::vector<Value*> val) : vals(val) {}