Skip to content

Commit a515cc8

Browse files
committed
add README attributions and update example
1 parent d1beb70 commit a515cc8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
![Tests](https://github.com/Deric-W/lambda_repl/actions/workflows/Tests.yaml/badge.svg)
44
[![codecov](https://codecov.io/gh/Deric-W/lambda_repl/branch/main/graph/badge.svg?token=SU3982mC17)](https://codecov.io/gh/Deric-W/lambda_repl)
55

6-
The `lambda_repl` package contains a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) for the [lambda calculus](https://en.wikipedia.org/wiki/Lambda_calculus).
6+
The `lambda_repl` package contains a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop)
7+
for the [lambda calculus](https://en.wikipedia.org/wiki/Lambda_calculus).
78

89
To use it, execute `lambda-repl` or `python3 -m lambda_repl` and enter commands.
910

1011
## Requirements
1112

12-
Python >= 3.10 and the `lambda_calculus` package are required to use this package.
13+
Python >= 3.10 and the packages [`lambda_calculus`](https://github.com/Deric-W/lambda_calculus)
14+
and [`lark`](https://github.com/lark-parser/lark) are required to use this package.
1315

1416
## Installation
1517

@@ -24,12 +26,14 @@ python3 -m lambda_repl
2426
Welcome to the the Lambda REPL, type 'help' for help
2527
λ alias I = \x.x
2628
λ alias K = λx.λy.x
29+
λ import SUCC = lambda_calculus.terms.arithmetic.SUCCESSOR
2730
λ aliases
2831
I = (λx.x)
2932
K = (λx.(λy.x))
33+
SUCC = (λn.(λf.(λx.(f ((n f) x)))))
3034
λ trace K a b
3135
β ((λy.a) b)
3236
β a
3337
λ exit
3438
Exiting REPL...
35-
```
39+
```

0 commit comments

Comments
 (0)