Implemented for loops

This commit is contained in:
Eduard Urbach 2025-02-19 23:46:17 +01:00
parent 7922cff7ba
commit 45a36a645a
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
16 changed files with 142 additions and 120 deletions

14
tests/programs/loop-for.q Normal file
View file

@ -0,0 +1,14 @@
main() {
x := 0
for 0..5 {
x += 1
}
assert x == 5
for i := 0..5 {
assert i >= 0
assert i < 5
}
}