SPL is an esoteric programming language invented by StelK around December 2005. It is very similar to Brainfuck but it has some new instructions. It was made only as a hobby. SPL can handle only integers.
The SPL command set is that of Brainfuck with some alterations.
||Move pointer right|
||Move pointer left|
||Increment the byte at the pointer|
||Decrement the byte at the pointer|
||Output the byte at the pointer|
||Input the byte at the pointer|
||Jump past matching |
||Jump back to matching |
||Load the current byte into the accumulator|
||Wait for an input and put it into the accumulator|
||Put in the current byte the result of the current byte%accumulator|
||Multiply the current byte by the accumulator|
||Add the accumulator to the current byte|
||Subtract the accumulator from the current byte|
||Divide the current byte by the accumulator|
||Terminate the program immediately|
||Print the string literal enclosed in the double quotation marks|
To print text you can simply put it between
". So the classic Hello, world! program is:
"Hello World "
The newline character is also printed. Text between
# is a comment. Comments can't be nested. (The current implementation allows you to match an
] inside comments for interesting results.)
This asks a number and prints the numbers between it and zero:
"n: ",^[." "-^]" "
An infinitely repeating cat program is implemented in the following:
- Brainfuck: The language from which SPL is born.
- Common Lisp implementation of the SPL programming language.