diff options
[IPL/T] Add function can handle multiple arguments
1 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp | 4 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp index 088f4d0..fefe544 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp @@ -4,7 +4,9 @@ int main() { LLVMVisitor visitor("testout.ll"); - std::deque<Value*> nodes = { new BuiltInFunction("+", { new Integer(123), new Integer(567) }) }; + std::deque<Value*> nodes = { + new BuiltInFunction("+", { + new Integer(1), new Integer(2), new Integer(123) }) }; for (Value* n : nodes) { n->Visit(visitor); } |
