A small lambda calculus evaluator
Find a file
2025-07-02 23:45:37 +02:00
examples chore: renamed the examples 2025-07-02 23:45:37 +02:00
include feat: added simple import support 2025-07-01 23:52:19 +02:00
src feat: added simple import support 2025-07-01 23:52:19 +02:00
.gitignore fix: changed the build dir path in gitignore 2025-06-30 22:02:40 +02:00
CMakeLists.txt feat: initial commit 2025-06-30 19:43:09 +02:00
README.md feat: added simple import support 2025-07-01 23:52:19 +02:00

Lambda

A simple lambda calculus evaluator. Its just a bunch of functions you define and use as data and pass into other functions.

How to install

git clone https://github.com/lisk77/lambda && cd lambda
mkdir build && cd build
cmake ..
make

How to use

Write your code into a file and pipe it into the binary

cat file | lambda

or just echo the code directly

echo "main = \\ x . x;" | lambda

Syntax

Lambda expression

\ param1 param2 param3 ... param3 . body

Name definition

identifier = lambda expression | identifier;

For a file to be able to be run, it needs to define a main function.

Future ideas

  • types
  • imports (at least simple)
  • small standard library