diff options
[IPL/T] Overhauled how functions are handled, added list type
1 files changed, 2 insertions, 8 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/Value/Value.h | 10 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Value.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Value.h index a675d13..dd5dc2a 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Value.h +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Value.h @@ -4,17 +4,11 @@ #include <string> class LLVMVisitor; +struct LLVMRet; class Value { public: - enum T_Primitive { - T_void, - T_name, - T_integer, - T_float, - }; - virtual std::string Visit(LLVMVisitor& visitor) const = 0; - virtual T_Primitive RetType() const = 0; + virtual LLVMRet Visit(LLVMVisitor& visitor) const = 0; virtual ~Value() {}; }; |
