diff --git a/lib/math/factorial/factorial.snow b/lib/math/factorial/factorial.snow index 46749dd..82a6dbf 100644 --- a/lib/math/factorial/factorial.snow +++ b/lib/math/factorial/factorial.snow @@ -15,11 +15,11 @@ module: Math 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 diff --git a/lib/test/Dead_loop.snow b/lib/test/Dead_loop.snow index 5f73bfb..f2a1a98 100644 --- a/lib/test/Dead_loop.snow +++ b/lib/test/Dead_loop.snow @@ -3,11 +3,11 @@ function: main return_type: int body: loop: - initializer: + init: declare i:int = 0 - condition: + cond: 1 == 1 - update: + step: i = i + 1 body: diff --git a/playground/Demo/Demo5/Main.snow b/playground/Demo/Demo5/Main.snow index 75ae75f..c475980 100644 --- a/playground/Demo/Demo5/Main.snow +++ b/playground/Demo/Demo5/Main.snow @@ -5,11 +5,11 @@ module: Main body: declare b1: boolean = true loop: - initializer: + init: declare i:int = 0 - condition: + cond: b1 - update: + step: i = i + 1 body: diff --git a/playground/Demo/Demo9/Main.snow b/playground/Demo/Demo9/Main.snow index 46749dd..82a6dbf 100644 --- a/playground/Demo/Demo9/Main.snow +++ b/playground/Demo/Demo9/Main.snow @@ -15,11 +15,11 @@ module: Math 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