Skip to main content

REPL for the lambda calculus

Project description

lambda_repl

Hatch project Tests codecov

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 packages lambda_calculus and lark 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
λ import SUCC = lambda_calculus.terms.arithmetic.SUCCESSOR
λ aliases
I = (λx.x)
K = (λx.(λy.x))
SUCC = (λn.(λf.(λx.(f ((n f) x)))))
λ trace K a b
β ((λy.a) b)
β a
λ exit
Exiting REPL...

Project details


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.2.1.tar.gz (11.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lambda_repl-1.2.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file lambda_repl-1.2.1.tar.gz.

File metadata

  • Download URL: lambda_repl-1.2.1.tar.gz
  • Upload date:
  • Size: 11.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lambda_repl-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a5e609968bedabab59f60ce952a8cffee82e33ee6301b7b0fe2bcb95d09723d3
MD5 ef32397314741f4e06cbcc95fdc46eb2
BLAKE2b-256 b87dff10ffdbe815c49fb33f0c514ba8edf1362b0862bcc212dab0b44aefc741

See more details on using hashes here.

File details

Details for the file lambda_repl-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: lambda_repl-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lambda_repl-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f73b73af547a1ec5b0f2437dc6be13167d624f611a929873012ec2006cc52fdc
MD5 d899c2c162bea17d819f75e0e9b842e1
BLAKE2b-256 38337a85bfa52cb0a436583e5fbd5c38d6847cdeebfeced1dcecf985d6980a93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page