From 06006fc601ab5f7bffa095b7279a61070e38ba54 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 19 Jan 2023 11:27:31 +0200 Subject: [IPL/T] Implemented Float type and added basic function structure as well as added addition function for two arguments --- .../Transpiler/src/Value/Function/BuiltInFunction.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/BuiltInFunction.h (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/BuiltInFunction.h') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/BuiltInFunction.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/BuiltInFunction.h new file mode 100644 index 0000000..26fba3f --- /dev/null +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/BuiltInFunction.h @@ -0,0 +1,12 @@ +#ifndef VALUE_ADDFUNCTION +#define VALUE_ADDFUNCTION + +#include "Function.h" + +class BuiltInFunction : public Function { +public: + std::string Visit(LLVMVisitor& visitor) const override; + BuiltInFunction(std::string name, std::deque args); +}; + +#endif -- cgit v1.3.1-23-gd82d