mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Cosmetics in stdlib/spec
This commit is contained in:
parent
50fc2e9f2a
commit
78305d22b3
6 changed files with 12 additions and 12 deletions
|
|
@ -2,8 +2,8 @@ printf ("if, case, for, while, repeat etc. are all expressions.\n");
|
|||
|
||||
printf ("Case-expression: %s\n", case A (1, 2, 3) of A (x, y, z) -> z esac.string);
|
||||
|
||||
printf ("If-expression: %s\n", if true then 2 else 3 fi +
|
||||
if false then 6 else 7 fi.string);
|
||||
printf ("If-expression: %s\n", (if true then 2 else 3 fi +
|
||||
if false then 6 else 7 fi).string);
|
||||
|
||||
printf ("Scope-expression: %s\n", {local i, s = 0;
|
||||
for i := 0, i < 10, i := i + 1 do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue