Fix ast nodes now containing token entry instead of token

This commit is contained in:
omicron 2025-04-01 17:20:32 +02:00
parent 3ff53f923d
commit ec7d06b135

View File

@ -3,6 +3,7 @@
#include "error.h" #include "error.h"
#include "lexer.h" #include "lexer.h"
#include "tokenlist.h"
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
@ -23,7 +24,7 @@ constexpr size_t node_max_children_cap = 1 << 16;
struct ast_node { struct ast_node {
node_id_t id; node_id_t id;
lexer_token_t *token; tokenlist_entry_t *token_entry;
size_t len; size_t len;
size_t cap; size_t cap;
ast_node_t **children; ast_node_t **children;