diff options
[IPL/T] Moved function associativity to a seperate function
1 files changed, 5 insertions, 1 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp | 6 |
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 fefe544..a154c56 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp @@ -1,12 +1,16 @@ #include <iostream> #include <deque> #include "LLVMVisitor/LLVMVisitor.h" +#include "Value/Function/BuiltInFunction.h" int main() { LLVMVisitor visitor("testout.ll"); std::deque<Value*> nodes = { new BuiltInFunction("+", { - new Integer(1), new Integer(2), new Integer(123) }) }; + new Integer(1), + new Integer(2), + new BuiltInFunction("-", { new Integer(5), new Integer(10) }), + new Integer(123) }) }; for (Value* n : nodes) { n->Visit(visitor); } |
