From ab1d1ecba4f2562a8b81d887d08370d5fcf0921d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 29 Jan 2023 20:58:52 +0200 Subject: [IPL/T] Added current progress of implementing functions --- .../Transpiler/src/Value/Name.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.h (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.h') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.h new file mode 100644 index 0000000..b242c06 --- /dev/null +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.h @@ -0,0 +1,20 @@ +#ifndef VALUE_NAME +#define VALUE_NAME + +#include +#include "Value.h" + +class Name : public Value { + std::string val; + +public: + const std::string& get_value() const; + + std::string Visit(LLVMVisitor& visitor) const override; + T_Primitive RetType() const override; + + Name(std::string); + ~Name() override = default; +}; + +#endif -- cgit v1.3.1-26-gb76a