fix: new lexer is linked to everything
This commit is contained in:
parent
d5a1ec3ca6
commit
71e58e38b8
6 changed files with 26 additions and 22 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue