a very simple lambda calculus interpreter using bun
Go to file
Elizabeth Hunt 7d5778ac2c
add example
2024-02-13 19:59:06 -07:00
README.md add example 2024-02-13 19:59:06 -07:00
grammar.peggy interpreter 2024-02-13 19:57:27 -07:00
parser.js interpreter 2024-02-13 19:57:27 -07:00
repl.ts interpreter 2024-02-13 19:57:27 -07:00

README.md

usage: bun repl.ts

example:

➜ rlwrap bun repl.ts
>>> ((λ n.(λ f.(λ x.(f ((n f) x))))) (λ g.(λ g . (\ y.y))))
(λ g . (λ g . (λ y . y)))
>>>