diff options
[IPL/T] Added current progress of implementing functions
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp | 17 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp new file mode 100644 index 0000000..52094b9 --- /dev/null +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp @@ -0,0 +1,17 @@ +#include "Name.h" +#include "Value.h" +#include "../LLVMVisitor/LLVMVisitor.h" + +const std::string& Name::get_value() const { + return val; +} + +std::string Name::Visit(LLVMVisitor& visitor) const { + return visitor.Visit(*this); +} + +Value::T_Primitive Name::RetType() const { + return T_name; +} + +Name::Name(std::string val) : val(val) {} |
