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

const std::string& Name::get_value() const {
	return val;
}

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

Value::T_Primitive Name::RetType() const {
	return T_name;
}

Name::Name(std::string val) : val(val) {}