fix: some analysis stage problems
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user