fix: new lexer is linked to everything

This commit is contained in:
Matteo Flebus 2026-01-20 20:32:59 +01:00
parent d5a1ec3ca6
commit 71e58e38b8
6 changed files with 26 additions and 22 deletions

View file

@ -15,9 +15,8 @@
// === Functions
struct ast *get_ast()
struct ast *get_ast(struct lexer_context *ctx)
{
struct lexer_context *ctx = calloc(1, sizeof(struct lexer_context));
struct token *token = PEEK_TOKEN();
struct ast *res;
@ -44,8 +43,6 @@ struct ast *get_ast()
return NULL;
}
*/
destroy_lexer_context(&ctx);
return res;
}