Skip to content

j-wang/untyped-lambda-calculus-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Untyped Lambda Calculus Interpreter

Interpreter for the untyped lambda calculus described in Types and Programming Languages.

##Capabilities Only the Python version is completed and working. The Haskell version still in progress.

The interpreter can parse and evaluate basic abstractions made up of lambda statements, variables, and function applications. There is no environment currently implemented, so variables cannot represent expressions other than themselves.

To do:

  • Dynamic environment allowing symbolic look up and evaluation
  • Closures (which requires the previous)

##Examples LCI (q to quit) >> (lambda x. x) lambda x. x LCI (q to quit) >> (lambda x. x y) t t y LCI (q to quit) >> (lambda x. x) ((lambda x. x) (lambda z. (lambda x. x) x)) lambda z. (lambda x. x) x

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published