Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
+ n : INTEGER;
|
||||
|
||||
n := 3;
|
||||
|
||||
(n = 2).if {
|
||||
IO.put_string "n is 2\n";
|
||||
}.elseif {n = 3} then {
|
||||
IO.put_string "n is 3\n";
|
||||
}.elseif {n = 4} then {
|
||||
IO.put_string "n is 4\n";
|
||||
} else {
|
||||
IO.put_string "n is none of the above\n";
|
||||
};
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(n = 2).if_true { "n is 2\n".print; };
|
||||
(n = 2).if_false { "n is not 2\n".print; };
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
+ n : INTEGER;
|
||||
|
||||
n := 3;
|
||||
n
|
||||
.when 2 then {
|
||||
"n is 2\n".print;
|
||||
}
|
||||
.when 3 then {
|
||||
"n is 3\n".print;
|
||||
}
|
||||
.when 4 then {
|
||||
"n is 4\n".print;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue