Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -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
;

View file

@ -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

View file

@ -0,0 +1 @@
var int x = y > z ? y + 1 : z;