diff options
[IPL/T] Added current progress of implementing functions
1 files changed, 20 insertions, 0 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.h | 20 |
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 <string> +#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 |
