mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 23:58: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
8
regression/test009.expr
Normal file
8
regression/test009.expr
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
n := 2;
|
||||
k := 10;
|
||||
res := 1;
|
||||
while k > 0 do
|
||||
res := res * n;
|
||||
k := k - 1
|
||||
od;
|
||||
write(res)
|
||||
Loading…
Add table
Add a link
Reference in a new issue