/lc-js

A λ-calculus interpreter written in JavaScript

Primary LanguageJavaScriptMIT LicenseMIT

lc-js: A λ-calculus interpreter written in JavaScript

This interpreter was written for this blog post and was based on the implementation showed in the book Types and Programming Languages.

Running

In order to run the interpreter, clone this repo, and run:

$ node index.js <file>

You can also print the AST for the program by running:

$ node index.js --ast <file>