Implemented loop iterators
This commit is contained in:
parent
144810c6c8
commit
ac03657307
17 changed files with 147 additions and 35 deletions
11
tests/programs/loop-infinite.q
Normal file
11
tests/programs/loop-infinite.q
Normal file
|
@ -0,0 +1,11 @@
|
|||
main() {
|
||||
n := 10
|
||||
|
||||
loop {
|
||||
if n == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
n -= 1
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue