Fix ast nodes now containing token entry instead of token
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user