Skip to content

FSlang is a lambda calculus interpreter written in java. It is a port of lazy lambda calulus interpreter written by L. Allison of Monash University. Full article about the same is available at https://users.monash.edu.au/~lloyd/tildeFP/Lambda

Notifications You must be signed in to change notification settings

sinsinan/fslang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FSlang

A simple lambda calculus interpreter

FSlang is a lambda calculus interpreter written in java. It is a port of lazy lambda calulus interpreter written by L. Allison of Monash University. Full article about the same is available at https://users.monash.edu.au/~lloyd/tildeFP/Lambda

Examples

Function to add two numbers

let add = lambda x.lambda y.x+y
in add 2 3

Output:

5

Function to find factorial of a number

let rec factorial = lambda n.
    if n=0 then
        1
    else
        n*factorial(n-1)
in factorial 3

Output:

6

About

FSlang is a lambda calculus interpreter written in java. It is a port of lazy lambda calulus interpreter written by L. Allison of Monash University. Full article about the same is available at https://users.monash.edu.au/~lloyd/tildeFP/Lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages