diff options
[IPL/T] Values now have a return value which can be parsed easily
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp | 8 |
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 7f829d3..7fc9bcf 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp @@ -7,10 +7,10 @@ int main() { LLVMVisitor visitor("testout.ll"); std::deque<Value*> nodes = { new BuiltInFunction("+", { - new Integer(1), - new Integer(2), - new BuiltInFunction("-", { new Integer(5), new Integer(10) }), - new Integer(123) }) }; + new Float(1), + new Float(2), + new BuiltInFunction("-", { new Float(5), new Float(10) }), + new Float(123) }) }; for (Value* n : nodes) { n->Visit(visitor); } |
