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

View file

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