The Lamb Programming Language
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md

README.md

#Lamb Lamb is a interpreted language that revolves around Lambda Calculus.

Variables are made by putting the variable name, a : , and a value

hello:“Hello World”

Functions are written in Lambda Calculus notation

square:λx.x*x
add:λx.λy.x+y

Lamb is translated in JavaScript code through a Java ScriptEngine, meaning we can put JS code within our Lamb code

power:λx.λy.Math.pow(x,y)

To use a function, you can call it variables or other arguments

two:2
add(two,3)

You can also assign the return of a function to a variable

h:2
h:add(h,h)

Hello World

Returned values are printed out, so all we have to do is return the string “Hello World”

"Hello World"