From de48503aef098d855754ab6f85558402130188d7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 25 Aug 2019 11:38:32 +0200 Subject: Find tokenizer by code reference instead of using scope parser --- src/parser.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index a6b4ecf..df326f0 100644 --- a/src/parser.c +++ b/src/parser.c @@ -39,7 +39,6 @@ int parser_init(Parser *self, amal_compiler *compiler, ArenaAllocator *allocator self->error.str = NULL; self->error_context = ERROR_CONTEXT_NONE; return_if_error(structdecl_init(&self->struct_decl, &compiler->root_scope, allocator)); - self->struct_decl.body.parser = self; lhsexpr_init(&self->file_decl, DECL_FLAG_EXTERN | DECL_FLAG_PUB | DECL_FLAG_CONST, create_buffer_view_null()); return_if_error(ast_create(self->allocator, &self->struct_decl, AST_STRUCT_DECL, &self->file_decl.rhs_expr)); self->current_scope = &self->struct_decl.body; -- cgit v1.2.3