diff options
[IPL/T] Implemented Float type and added basic function structure as well as added addition function for two arguments
1 files changed, 12 insertions, 0 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Function.cpp | 12 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Function.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Function.cpp new file mode 100644 index 0000000..9e35eab --- /dev/null +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Function/Function.cpp @@ -0,0 +1,12 @@ +#include "Function.h" +#include "../../LLVMVisitor/LLVMVisitor.h" + +const std::string& Function::get_name() const { + return name; +} + +const std::deque<Value*> Function::get_args() const { + return args; +} + +Function::Function(std::string name, std::deque<Value*> args) : name(name), args(args) {} |
