From 53e945fbe552ccbf72e5d7eb9362eb5fa234fdee Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 28 Apr 2024 01:35:48 +0300 Subject: [PATCH] Fix true/false naming on unless_expression --- 04_semantics_and_running/build_ast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/04_semantics_and_running/build_ast.py b/04_semantics_and_running/build_ast.py index 1f65a55..c9ad087 100644 --- a/04_semantics_and_running/build_ast.py +++ b/04_semantics_and_running/build_ast.py @@ -289,8 +289,8 @@ def p_unless_expression(p): 'unless_expression : DO expression UNLESS expression OTHERWISE expression DONE' p[0] = ASTnode('unless_expression', p.lineno(1)) p[0].child_condition = p[4] - p[0].child_expression_true = p[2] - p[0].child_expression_false = p[6] + p[0].child_expression_true = p[6] + p[0].child_expression_false = p[2] def p_error(p): if p is not None: