mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 19:28:47 +00:00
Buildtins, arrays, string (no X86 yet), tests
This commit is contained in:
parent
25eff5c282
commit
39508a0195
10 changed files with 87 additions and 25 deletions
21
regression/test036.expr
Normal file
21
regression/test036.expr
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
fun printAS (x) local i, j {
|
||||
for i := 0, i<x.length, i:=i+1 do
|
||||
for j := 0, j<x[i].length, j:=j+1 do
|
||||
write (x[i][j])
|
||||
od
|
||||
od
|
||||
}
|
||||
|
||||
y := read ();
|
||||
|
||||
x := ["abcd", "efgh"];
|
||||
|
||||
printAS (x);
|
||||
|
||||
for i := 0, i<x.length, i:=i+1 do
|
||||
for j := 0, j<x[i].length, j:=j+1 do
|
||||
x[i][j] := 'a'
|
||||
od
|
||||
od;
|
||||
|
||||
printAS (x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue