Kava

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Kava is an esolang created by User:Ractangle

Commands

Commands Action
Kava.fuction Creates a function
print Prints something
variable Declares a variable
if...?/unless...? Conditional
user Gets user input
plug *library* in imports a library
: Either halts the program or end a function

Examples

Hello, world!

Kava.function main;
(print|Hello, world!|:)

Truth-machine

plug var in;
Kava.function one;
(print|1|;f[one||:])
Kava.function main;
(var|i;(user)|
if [i=1]?=f[one||]
unless?=print|1|:)