mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 17:19:31 +00:00
Add while loop line and operator
This commit is contained in:
parent
f5382d2912
commit
48cabbf4c0
14 changed files with 500 additions and 61 deletions
16
test/tests/while loop.ans
Normal file
16
test/tests/while loop.ans
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
:i = 0
|
||||
~? i <= 10
|
||||
{i}
|
||||
|
||||
~ i += 1
|
||||
|
||||
return in loop:
|
||||
|
||||
~ i := 0
|
||||
~? i <= 10
|
||||
{i}
|
||||
|
||||
~ i == 5
|
||||
@
|
||||
|
||||
~ i += 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue