Implemented loop iterators

This commit is contained in:
Eduard Urbach 2025-02-19 17:52:15 +01:00
parent 144810c6c8
commit ac03657307
Signed by: eduard
GPG key ID: 49226B848C78F6C8
17 changed files with 147 additions and 35 deletions

View file

@ -0,0 +1,10 @@
import mem
main() {
a := mem.alloc(4)
loop i := 0..4 {
a[i] = i * 2
assert a[i] == i * 2
}
}