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

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

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

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