Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Name.h
diff options
context:
space:
mode:
1 files changed, 20 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.h20
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