Pluto24 is a highly customizable programming language, written in just 24 lines of code.
<digit> => pushed to stack
<*:> => function declaration
<&*> => function reference
<:> => comment (nameless function)
<*> => calls the function
Source basic.pluto
add => adds two integers
sub => subtracts two integers
mul => multiplies two integers
div => divides two integers, using integer division
mod => modulus of two integers
copy => copies the nth element
drop => drops the nth element
if => runs the function(at 1) if condition(at 2) > 0
get => reads a single byte into the stack
put => prints a single byte from the stack
$ python main.py <program.pluto, ...>
Programs under /examples
assumes std.pluto
is included
$ python main.py std.pluto examples/hello.pluto
This is an optional pluto library, which contains commonly used functions.
This library contains function alias as operators, enables the usage of operators instead of keywords.
e.g. 1 2 add
=> 1 2 +