Implemented for loops
This commit is contained in:
parent
ac03657307
commit
d26bf9d1a9
16 changed files with 142 additions and 120 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue