Fix parse_token to add the correct information to a parse node
This commit is contained in:
parent
ec7d06b135
commit
81be56de33
@ -37,6 +37,8 @@ parse_result_t parse_token(tokenlist_entry_t *current,
|
|||||||
error_t *err = ast_node_alloc(&node);
|
error_t *err = ast_node_alloc(&node);
|
||||||
if (err)
|
if (err)
|
||||||
return parse_error(err);
|
return parse_error(err);
|
||||||
|
node->id = ast_id;
|
||||||
|
node->token_entry = current;
|
||||||
|
|
||||||
return parse_success(node, current->next);
|
return parse_success(node, current->next);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user