aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-25 11:38:32 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commitde48503aef098d855754ab6f85558402130188d7 (patch)
treec84c7527ee3a351c1c92183bb7a68e4adbaff303 /src/parser.c
parent4d8283e14b0365038b01df4fab5dee75035007ed (diff)
Find tokenizer by code reference instead of using scope parser
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c1
1 files changed, 0 insertions, 1 deletions
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;