stage1 更多的语义及其附属基础设施

This commit is contained in:
zzy
2026-08-20 19:51:08 +08:00
parent d6113a5417
commit 0f40de43a1
7 changed files with 553 additions and 79 deletions

View File

@@ -43,6 +43,8 @@ typedef struct {
spl_scope_t *scope;
spl_symbol_t root;
int error_count;
spl_scope_id_t store_scope;
spl_type_id_t current_fn_ret_tid; // TODO
} spl_sema_t;
void spl_sema_init(spl_sema_t *sema, spl_ast_t *ast, spl_type_t *type, spl_scope_t *scope);