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

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

Value::T_Primitive Float::RetType() const {
	return Value::T_float;
}

const double& Float::get_value() const {
	return this->value;
}

Float::Float(double value) : value(value) {}