From 81be56de33caa2d01dbb07e0ae5d5e17f3025f51 Mon Sep 17 00:00:00 2001 From: omicron Date: Tue, 1 Apr 2025 17:20:50 +0200 Subject: [PATCH] Fix parse_token to add the correct information to a parse node --- src/parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parser.c b/src/parser.c index 4071e76..61d0589 100644 --- a/src/parser.c +++ b/src/parser.c @@ -37,6 +37,8 @@ parse_result_t parse_token(tokenlist_entry_t *current, error_t *err = ast_node_alloc(&node); if (err) return parse_error(err); + node->id = ast_id; + node->token_entry = current; return parse_success(node, current->next); }