diff options
author | Marvin Borner | 2022-04-20 19:08:02 +0200 |
---|---|---|
committer | Marvin Borner | 2022-04-20 19:08:02 +0200 |
commit | cf3258b2cf6a7022fcaa26ff071cb4d2a0c9bdec (patch) | |
tree | 108fc3fc628aeadd17884b8047286fcc5dfce98a /test.bruijn | |
parent | 041bdeeb3034512a9224ea9e341a857d1b70543f (diff) |
Basic functionality
Diffstat (limited to 'test.bruijn')
-rw-r--r-- | test.bruijn | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test.bruijn b/test.bruijn index c941535..cd5133b 100644 --- a/test.bruijn +++ b/test.bruijn @@ -1,6 +1,14 @@ -#nil [[0]] +# Church numerals +zero [[0]] +succ [[[1 (2 1 0)]]] +add [[[[3 1 (2 1 0)]]]] +mul [[[2 (1 0)]]] +exp [[0 1]] + +Y [[1 (0 0)] [1 (0 0)]] + true [[1]] -#false [[0]] +false [[0]] id [0] iota [0 [[[2 0 (1 0)]]] [[1]]] -main id true +main id false |