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

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

const int& Integer::get_value() const {
	return this->value;
}

Integer::Integer(int value) : value(value) {}