Skip to content

AtomAlpaca/littlelambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

littlelambda

A tiny untyped lambda calculus evaluatior with Normalization by Evaluation algorithm.

build

ghc -o Main Main.hs

Usage

Here we define a lambda term as below

$$ term := x|A\ B|\lambda x.M|let\ x=M;y $$

where the let pattern is a syntactic sugar for the convenience of defining variables.

Test

cat test.txt | Main

It would output the normal form of 1000 in Church encoding

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published