Fix parse_token to add the correct information to a parse node

This commit is contained in:
omicron 2025-04-01 17:20:50 +02:00
parent ec7d06b135
commit 81be56de33

View File

@ -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);
} }