Implemented for loops

This commit is contained in:
2025-02-19 23:46:17 +01:00
parent 7922cff7ba
commit 45a36a645a
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
}