stage2 提供sys包装 解决stage1的bug

This commit is contained in:
zzy committed 2026-09-17 17:25:55 +08:00
1 parent 5de4937637
commit 1a6df012cd
5 files changed
+178 -29

No files matched your search

-11
View File
@@ -941,17 +941,6 @@ static spl_ast_node_ref_t parse_type_base(spl_parser_t *p) {
spl_ast_node_t *tp = node_at(p->ast, ref);
SET_STR_FIELD(p->ast, tp->type_path.name, bt);
vec_init(tp->type_path.generic_args);
while (peek(p) && peek(p)->type == TOK_DOT) {
advance(p);
const spl_tok_t *seg = peek(p);
if (!seg || seg->type != TOK_IDENT) {
PARSE_ERROR(p, SPL_DIAG_KIND_PARSE_EXPECTED, seg,
"expected identifier after '.' in type path");
break;
}
advance(p);
}
return ref;
}