Implemented for loops

This commit is contained in:
Eduard Urbach 2025-02-19 23:46:17 +01:00
parent ac03657307
commit d26bf9d1a9
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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
}
}