mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-28 17:48:47 +00:00
Control statement (interpreter, SM, x86)
This commit is contained in:
parent
42d94672bc
commit
8758485b80
15 changed files with 132 additions and 55 deletions
18
regression/test010.expr
Normal file
18
regression/test010.expr
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
i := 0;
|
||||
s := 0;
|
||||
|
||||
while i < 100
|
||||
do
|
||||
j := 0;
|
||||
|
||||
while j < 100
|
||||
do
|
||||
s := s + j;
|
||||
j := j + 1
|
||||
od;
|
||||
|
||||
s := s + i;
|
||||
i := i + 1
|
||||
od;
|
||||
|
||||
write (s)
|
||||
Loading…
Add table
Add a link
Reference in a new issue