Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1 +0,0 @@
type Boolean is (False, True);

View file

@ -1,7 +1,7 @@
a: true
b: false
if? a [ print "yep" ] else [ print "nope" ]
switch a [ print "yep" ][ print "nope" ]
if? b -> print "nope"
else -> print "yep"
switch b -> print "nope"
-> print "yep"

View file

@ -1 +0,0 @@
01 some-bool PIC 1 BIT.

View file

@ -1,4 +0,0 @@
01 X PIC 9.
88 X-Is-One VALUE 1.
88 X-Is-Even VALUE 0 2 4 6 8.
88 X-Larger-Than-5 VALUE 6 THRU 9.

View file

@ -1,28 +0,0 @@
PROGRAM-ID. Condition-Example.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 Foo PIC 9 VALUE 5.
88 Is-Not-Zero VALUE 1 THRU 9
WHEN SET TO FALSE IS 0.
PROCEDURE DIVISION.
Main.
PERFORM Is-Foo-Zero
SET Is-Not-Zero TO FALSE
PERFORM Is-Foo-Zero
SET Is-Not-Zero TO TRUE
PERFORM Is-Foo-Zero
GOBACK
.
Is-Foo-Zero.
IF Is-Not-Zero
DISPLAY "Foo is not zero, it is " Foo "."
ELSE
DISPLAY "Foo is zero."
END-IF
.

View file

@ -2,7 +2,7 @@ if false
puts "false"
elsif nil
puts "nil"
elsif Pointer(Nil).new 0
elsif Pointer(Nil).new 0_u64
puts "null pointer"
elsif true && "any other value"
puts "finally true!"

View file

@ -1,8 +0,0 @@
class Main {
static public function main():Void {
var t = true;
var f = false;
$type(t);
$type(f);
}
}

View file

@ -1,2 +0,0 @@
$true
$false

View file

@ -1,6 +0,0 @@
a = True
b = False
Randomize Timer
x = Int(Rnd * 2) <> 0
y = Int(Rnd * 2) = 0
MsgBox a & " " & b & " " & x & " " & y