#Skull, 9 characters
Skull, 9 characters
[]{}|:NUM
So Skull is an interesting language. You need NUM
to set number mode. This adds to the amount of characters you need as you have to use one at the beginning of your programs. Also I mean that is the entire language except for 3 other characters.
{ x [ y ] }
Increment or decrement the specified cell (x) by the specified number (y)
{ x {
While the specified cell (x) is not 0...
} }
End while
| x |
Print out the specified cell (x) to the screen
This is a simple program doing addition (4+2)
:NUM: // set mode to NUM
{0[+4]} // set cell 0 to 4
{1[+2]} // set cell 1 to 2
{0{ // while cell 0 is not 0
{0[-1]} // subtract cell 0 by 1
{1[+1]} // add 1 to cell 1
}} // end while
|1| // print cell 1 (6)