WHAT

From Esolang
Jump to navigation Jump to search

WHAT is a tape-based esolang with one extra variable called Memory. It was inspired by the language in 2D Boy's Human Resource Machine.

Commands

IN: Gets an input and stores in Memory.
OUT: Puts the value in Memory into the output.
GO: Halts the program and sends all the output values to the screen.
SWAP 1: Swaps the value in Memory with the value of cell 1.
READ 1: Overrides Memory with a copy of cell 1's value.
SET A: Sets jump point A.
JUMP A: Goes to jump point A
IF 0: Only executes the next line if the cell in memory is 0.
IF NEG: Only executes the next line if the cell in memory is negative.

(WIP)