feat: for step 步长 — for i in 0 to 10 step 2 { ... }

Token(75): +TOK_STEP, desugar_for 增加 step_expr 参数, 默认 step=1

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 14:13:09 +08:00
parent 71208a87f4
commit caf17e16fc
7 changed files with 23 additions and 13 deletions
+6
View File
@@ -0,0 +1,6 @@
fn main() -> i64 {
for i in 0 to 10 step 2 {
print_i64(i);
}
return 0;
}