diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-25 18:06:18 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-25 18:06:18 +0200 |
commit | 90507290b8b6f9d15605c53480225f5a10a36ca7 (patch) | |
tree | 09e87f7e8d2ed5dc2897b1f7c67aaa8bdc3ee41d /src/parser.c | |
parent | bc9aa6e8ad03cd739cd54a9b97f78a14287b9fbd (diff) | |
download | bdl-90507290b8b6f9d15605c53480225f5a10a36ca7.tar.gz bdl-90507290b8b6f9d15605c53480225f5a10a36ca7.zip |
Update inner struct symbol resolution
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.c b/src/parser.c index 1e54776..e38f2ca 100644 --- a/src/parser.c +++ b/src/parser.c | |||
@@ -488,10 +488,9 @@ parse_type(Parser *parser) { | |||
488 | void | 488 | void |
489 | parse_struct_field(Parser *parser) { | 489 | parse_struct_field(Parser *parser) { |
490 | if (parser->panic) return; | 490 | if (parser->panic) return; |
491 | Token prev = parser->previous; | ||
492 | #if DEBUG == 1 | 491 | #if DEBUG == 1 |
493 | print("parsing struct field "); | 492 | print("parsing struct field "); |
494 | print_token(prev); | 493 | print_token(parser->previous); |
495 | #endif | 494 | #endif |
496 | Node *field = node_alloc(parser, NODE_FIELD, parser->current); | 495 | Node *field = node_alloc(parser, NODE_FIELD, parser->current); |
497 | if (!field) return; | 496 | if (!field) return; |