Skip to content

Commit 323d94f

Browse files
author
Filippo Costa
committed
Initial commit
0 parents  commit 323d94f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lambda.lambda

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Combinators
2+
$ID: (x.x)
3+
$OMEGA: ((x.xx) (x.xx))
4+
5+
// Boolean values
6+
$TRUE: (t.f.t)
7+
$FALSE: (t.$ID)
8+
9+
// Logical operators
10+
$AND: (b1.b2.(b1 b2 $FALSE))
11+
$OR: (b1.b2.(b1 $TRUE b2))
12+
$NOT: (b.(b $FALSE $TRUE))
13+
$XOR: (b1.b2.(b1 ($NOT b2) b2))
14+
15+
// Church numerals
16+
$ZERO: $FALSE

0 commit comments

Comments
 (0)