REPL for the lambda calculus
Project description
lambda_repl
The lambda_repl
package contains a REPL for the lambda calculus.
To use it, execute lambda-repl
or python3 -m lambda_repl
and enter commands.
Requirements
Python >= 3.10 and the lambda_calculus
package are required to use this package.
Installation
python3 -m pip install lambda-repl
Examples
python3 -m lambda_repl
Welcome to the the Lambda REPL, type 'help' for help
λ alias I = \x.x
λ alias K = λx.λy.x
λ aliases
I = (λx.x)
K = (λx.(λy.x))
λ trace K a b
β ((λy.a) b)
β a
λ exit
Exiting REPL...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lambda_repl-1.1.0.tar.gz
(17.6 kB
view hashes)
Built Distribution
Close
Hashes for lambda_repl-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1f80554e8d22b778f87afebf18c3ef64f79dec39e69e3f70ec777ef387a69d3 |
|
MD5 | 83f8284a1f899deb16ff22f48e258d93 |
|
BLAKE2b-256 | ce527f52c1758361eff1f79f12dce7662737c5154805321a3217df5aa59ed8b6 |