removed NODE_EQUAL
This commit is contained in:
parent
cb021716ef
commit
9302e4710d
4 changed files with 2 additions and 8 deletions
2
parser.c
2
parser.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue