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

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

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

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