diff options
[IPL/T] Implemented Float type and added basic function structure as well as added addition function for two arguments
1 files changed, 16 insertions, 0 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.h | 16 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.h new file mode 100644 index 0000000..22cd721 --- /dev/null +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.h @@ -0,0 +1,16 @@ +#ifndef VALUE_FLOAT +#define VALUE_FLOAT + +#include "Value.h" + +class Float : public Value { + double value; +public: + std::string Visit(LLVMVisitor& visitor) const override; + const double& get_value() const; + + Float(double value); + ~Float() override = default; +}; + +#endif |
