From Esolang
Jump to navigation Jump to search

ALPL (A Lambda Programing Language) is an esoteric programming language that was invented by User:Kros.


=x (x is any character except whitespace characters or [.]`=?01.) Take one argument and store it in a variable named x. Return the argument.
? Take two arguments and one bit from input and return the first argument if the bit received was 1, else return the second argument.
0 Take one argument and return it, with the side effect of outputting a bit 0.
1 Like 0 but output bit 1 instead.
`xy Apply function x to parameter y.
[p.f] Define a function with parameters p that does f. (Every parameter name is one character long and is not whitespace or [.]`=?01.)


Print "Hi!"


Cat program


Smaller version:


Hello World