refactor: 重构 SnowExample 中的循环结构

- 将 loop 节点下的子节点名称从 initializer 改为 init
- 将 loop 节点下的子节点名称从 condition改为 cond
- 将 loop 节点下的子节点名称从 update 改为 step
This commit is contained in:
Luke 2025-07-14 23:50:01 +08:00
parent fb1c54998b
commit d2732857f1

View File

@ -39,11 +39,11 @@ public final class SnowExample {
body:
declare num1: int = 1
loop:
initializer:
init:
declare counter:int = 1
condition:
cond:
counter <= n
update:
step:
counter = counter + 1
body:
num1 = num1 * counter