Skip to content

111hunter/process-zero-to-hero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

λ-calculus interpreter

A λ-calculus interpreter written in JavaScript

Running

Clone this repo, and run:

$ node interpreter.js example.lambda

example.lambda is the factorial of 5. As a result of running the example, x is called 120 times by f

delay: 914
redexes: 26898
final: (λf.(λx.f (f ... (f x) ... ))

Interpreter modified from the project parkertimmins/lambda_interpreter, thank you very much

Releases

No releases published

Packages

No packages published