diff --git a/04_semantics_and_running/main.py b/04_semantics_and_running/main.py index a2327af..3318b47 100644 --- a/04_semantics_and_running/main.py +++ b/04_semantics_and_running/main.py @@ -264,7 +264,7 @@ def semantic_check(node: ASTnode, sem_data: SemData) -> None | ASTnode: if node.child_attribute.value not in valid_attributes: semantic_error(f'Invalid attribute \'{node.child_attribute.value}\' for {node.nodetype.split("_")[0]}, allowed values {valid_attributes}', node.child_attribute) - node.type = 'date' + node.type = 'int' return node case 'print': for item in node.children_items: