feat: expression

This commit is contained in:
2025-12-27 03:43:19 -05:00
parent bf0edfc593
commit 0e185fbf41
7 changed files with 50 additions and 15 deletions

View File

@@ -1,9 +1,9 @@
0 := \f x.x
inc n := \f x.f (n f x)
add n m := m inc n
mult n m := m (n f)
exp m n := m n
(inc n) := \f x.(f (n f x))
(add n m) := (m inc n)
(mult n m) := (m (n f))
(exp m n) := (m n)
# This is the final output.
5 := (inc (inc (inc (inc (inc 0)))))
exp 5 5
(exp 5 5)

1
samples/thunk.txt Normal file
View File

@@ -0,0 +1 @@
(\.VALUE anything)