Skip to content

tncowart/littlelambda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Little Lambda

A mini Lambda calculus interpreter in JavaScript. Supports function invocation, lambda, and let.

"let" is like Common Lisp's "let*". The assignments are done serially, not in parallel.

Thank you to Martin Tornwall for the implementation of let.

Repl

$ node repl.js

Some runnable programs

(\ (x) (x x))
(let ((TRUE (\\ (x y) x))
      (FALSE (\\ (x y) y))
      (AND (\\ (x y) (x y x))))
     (AND TRUE FALSE))

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%