diff options
[IPL/T] Added current progress of implementing functions
1 files changed, 16 insertions, 0 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.h | 16 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.h index e69de29..17cf931 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.h +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/UserFunction.h @@ -0,0 +1,16 @@ +#ifndef VALUE_USERFUNCTION +#define VALUE_USERFUNCTION + +#include <deque> +#include "Function.h" + +class UserFunction : public Function { + std::deque<Function*> body; + +public: + std::string Visit(LLVMVisitor& visitor) const override; + T_Primitive RetType() const override; + UserFunction(std::string name, std::deque<Value*> args, std::deque<Function*> body); +}; + +#endif |
