removed NODE_EQUAL

This commit is contained in:
Lorenzo Torres 2025-12-02 21:31:16 +01:00
parent cb021716ef
commit 9302e4710d
4 changed files with 2 additions and 8 deletions

View file

@ -488,7 +488,7 @@ ast_node *parse_expression(parser *p)
}
advance(p);
ast_node *node = arena_alloc(p->allocator, sizeof(ast_node));
node->type = NODE_EQUAL;
node->type = NODE_BINARY;
node->expr.binary.left = left;
node->expr.binary.operator = op;
node->expr.binary.right = parse_expression(p);