mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 19:28:47 +00:00
Massive renaming
This commit is contained in:
parent
241ab0a9ae
commit
61296c51e7
152 changed files with 45 additions and 29 deletions
15
regression/test045.lama
Normal file
15
regression/test045.lama
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
local x;
|
||||
|
||||
fun printString (s) {
|
||||
local i;
|
||||
for i := 0, i < s.length, i := i + 1 do
|
||||
write (s[i])
|
||||
od
|
||||
}
|
||||
|
||||
x := read ();
|
||||
printString (1.string);
|
||||
printString ("abc".string);
|
||||
printString ([].string);
|
||||
printString ([1, 2, 3].string);
|
||||
printString (Cons (1, Cons (2, Nil)).string)
|
||||
Loading…
Add table
Add a link
Reference in a new issue