Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Getting Started:

  1. git clone
  2. cd lambda
  3. make
  4. ./lambda ./examples/ > output.html
  5. Open output.html in a web browser.

Typing "make" in the top-level directory produces the lambda interpreter, which is an executable file. The interpreter was built for educational purposes, and produces a detailed representation of the program, before and after evaluation. If the lambda executable is given a filename as command-line argument, e.g.

lambda ./examples/

it will parse the specified file, and execute the resulting program.
This process will produce HTML output which, when viewed in a web browser, shows a graphical representation of the operator trees before evaluation of the program, and the final operator trees after evaluation is all finished.

Programs written in the language resemble something like the following:


Each semicolon-terminated line of input establishes an entry in a namespace ( symbol table ). For example, after parsing the first line above, the operator tree for "((plus,one),one)" will be stored in the namespace under the name "two".

The backslashes in the second and third lines each mark a bound variable in a lambda (function) definition. The parentheses show the application of one expression to another. For example, the expression:


Defines a function which takes two arguments ( 'f' and 'x', in that order ), and applies the first argument to the second.

The program defined in defines the Church Numeral for the number 1, and a function to add two church numerals together. Then, it calculates the church numeral for the number 2 by adding 1 + 1.


An interpreter for a programming language based on the Lambda Calculus.



No releases published


No packages published
You can’t perform that action at this time.