Spain without the S

From Esolang
Jump to navigation Jump to search
Not to be confused with Pain.

Spain without the S, also known as Pain for short, is an esolang created by User:Timothytomato.

Commands

All commands must have a space or newline separating them.

Command Description
Spain without the S Starts a loop.
Spain without the p Decrements the selected accumulator if nonzero, if zero then sets accumulator to 127.
Spain without the a Rotates the accumulator wheel one unit clockwise.
Spain without the i If the current accumulator is nonzero, jumps to the start of the current loop (the last Spain without the S). If not, then does nothing, proceeding to the next command.
Spain without the n Creates a new accumulator one unit clockwise from the current one (but does not jump to it).
Spain without the Spain Prints the value of the current accumulator as ASCII.
Spain without the pain Takes one-character input, and sets the current accumulator to the ASCII code for that character.

Execution

A Spain without the S program operates on a wheel of accumulators. When the program is first initialized, it starts with one accumulator with a value of 0. With the commands detailed above, this accumulator wheel and its individual accumulators can be manipulated.

If an error occurs, such as when a nonexistent command is entered or commands are not properly separated with spaces or newlines, the program halts and quits.

Examples

One Time Cat

Spain without the Pain Spain without the Spain

If you want infinitely repeating one-character cat:

Spain without the n Spain without the p Spain without the S
Spain without the a Spain without the Pain Spain without the Spain Spain without the a 
Spain without the i

Infinite Loop

Prints A infinitely.

Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p
Spain without the S Spain without the Spain Spain without the i

Truth Machine

If 0 is inputted, prints 0 and halts, if anything else is inputted, that character is printed infinitely.

Spain without the pain
Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p
Spain without the S
Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p 
Spain without the Spain
Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p Spain without the p
Spain without the i