mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
This commit is contained in:
parent
8f01e5eb5b
commit
66dc5c3063
8 changed files with 54 additions and 15 deletions
6
regression/orig/test110.log
Normal file
6
regression/orig/test110.log
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
> 0
|
||||
0
|
||||
10
|
||||
0
|
||||
10
|
||||
100
|
||||
1
regression/test110.input
Normal file
1
regression/test110.input
Normal file
|
|
@ -0,0 +1 @@
|
|||
0
|
||||
16
regression/test110.lama
Normal file
16
regression/test110.lama
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
local x = [0], y = [0];
|
||||
|
||||
read ();
|
||||
|
||||
write (x[0]);
|
||||
write (y[0]);
|
||||
|
||||
if 1 then x[0] else y[0] fi := 10;
|
||||
|
||||
write (x[0]);
|
||||
write (y[0]);
|
||||
|
||||
if 0 then x[0] else y[0] fi := 100;
|
||||
|
||||
write (x[0]);
|
||||
write (y[0])
|
||||
Loading…
Add table
Add a link
Reference in a new issue