Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -0,0 +1,15 @@
|
|||
if cond then
|
||||
foo();
|
||||
elsif cond then
|
||||
bar();
|
||||
else
|
||||
baz();
|
||||
end
|
||||
|
||||
// if's are expressions and can yield the value of the last expression in each branch
|
||||
var int x = if y > z then
|
||||
y + 1
|
||||
else
|
||||
z
|
||||
end
|
||||
;
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
switch x do
|
||||
case 1:
|
||||
foo();
|
||||
fallthrough; // Falls through and also executes "case 2"'s code
|
||||
case 2:
|
||||
bar();
|
||||
break; // Break out of switch.
|
||||
default:
|
||||
baz();
|
||||
break;
|
||||
end
|
||||
|
|
@ -0,0 +1 @@
|
|||
var int x = y > z ? y + 1 : z;
|
||||
Loading…
Add table
Add a link
Reference in a new issue