From Esolang
Jump to: navigation, search

Spoon is a Brainfuck derivative invented by S. Goodwin in 1998. It uses Huffman-coded binary sequences to represent each instruction.

Command set

Spoon's command set consists of the commands in Brainfuck, converted to binary sequences through Huffman coding, with two additional commands added on.

Command Description
1 Increment the memory cell under the pointer
000 Decrement the memory cell under the pointer
010 Move the pointer to the right
011 Move the pointer to the left
0011 Jump back to the matching 00100
00100 Jump past the matching 0011 if the cell under the pointer is zero
001010 Output the character signified by the cell at the pointer
0010110 Input a character and store it at the cell in the pointer
00101110 Output the entire memory array
00101111 Immediately terminate program execution

The language allows other characters to be substituted for 0 and 1, or even for 0 and 1 to be swapped, provided the interpreter is informed. It is therefore possible to make Spoon programs that are also ASCII art.

Hello world example


External resources