diff options
[IPL/T] Added some bool functions
1 files changed, 2 insertions, 2 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 4d58dc7..4c66e70 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/main.cpp @@ -8,7 +8,7 @@ int main() { std::deque<Value*> nodes = { new Funcall("defvar", { new Name("myvar"), - new Funcall("+", { new Funcall("-", { new Integer(8), new Integer(4) }), new Integer(19) }) + new Integer(19) }), new Funcall("+", { new Float(1), @@ -24,7 +24,7 @@ int main() { new Name("b") }), new Funcall("if", { - new Integer(5), + new Funcall(">=", { new Integer(5), new Integer(6) }), new Funcall("+", { new Integer(1), new Integer(2) }), new Funcall("-", { new Integer(3), new Integer(4) }) })}) |
