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

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

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

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