Skip to content

melvinzhang/binary-lambda-calculus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The objective of this project is to understand John Tromp's 2012 IOCCC entry.

Done

Todo

Usage

uni is an interpreter for binary lambda calculus based on the Krivine machine. It reads from standard input a program description followed by input for the program, and output the result to the standard output.

It supports the following options:

  • -B: byte mode (default)
  • -b: binary mode
  • -o: enable all optmizations
  • -l: enable call-by-need optimization
  • -c: enable "collapse marker" optimization
  • -s: enable "eager dereferncing" optimization