Skip to content

phase/lamb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

#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"

About

The Lamb Programming Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages