nob 实现最后一步编译框架 移动测试用例 准备for的新语法

This commit is contained in:
zzy committed 2026-11-02 21:41:19 +08:00
1 parent c4d1bbae92
commit bb8761d392
92 files changed
+803 -27

No files matched your search

+2
View File
@@ -96,6 +96,7 @@ type Body = enum {
label: usize,
iter_exprs: Vec,
pattern: usize,
pattern_type: usize,
body: usize,
else_branch: usize,
},
@@ -546,6 +547,7 @@ fn dump_node(ast: *Ast, buf: *ByteBuffer, stack: *Vec, ref: usize, last: bool):
ok = dump_opt(ast, buf, stack, f.label, false) &&
dump_list(ast, buf, stack, f.iter_exprs) &&
dump_opt(ast, buf, stack, f.pattern, false) &&
dump_opt(ast, buf, stack, f.pattern_type, true) &&
dump_opt(ast, buf, stack, f.body, false) &&
dump_opt(ast, buf, stack, f.else_branch, true);
},