fix: some analysis stage problems

This commit is contained in:
samsonium
2026-10-27 14:12:09 +03:00
parent 411d291a2c
commit c61322718d
10 changed files with 69 additions and 18 deletions
+3 -1
View File
@@ -21,8 +21,10 @@ fzl_an_ctx_t *an_nest_ctx(fzl_analyzer_t *analyzer, fzl_an_ctx_type_t type)
else
ctx->parent = NULL;
ctx->symbols = fzl_mksymt();
ctx->symbols_level = analyzer->symbols_top;
analyzer->ctx = ctx;
analyzer->symbols[analyzer->symbols_top++] = fzl_mksymt();
analyzer->symbols[analyzer->symbols_top++] = ctx->symbols;
return ctx;
}