From Esolang
Jump to navigation Jump to search

Gototape is a Turing-complete language on a biderectional tape where each cell is a int. every cell is by deafault 0. There is no explicit input or output. At the end of the programme is finished, it prints the entire tape (in the format " int int int int...", and removes the first and last chain of infinite 0s.

the command format goes as follows

<command name, which is number> <the current number on the cell that the pointer is pointing to> <what number to overwrite to the cell> <what cell they should go to, according to the current cell and how far left or right they should go, designated by an int> <what command number they should go to> The pointer is by deafaut in the 0th cell. "X" is the halt state

Truth machine

0 0 0 0 X 0 1 1 1 2 2 0 1 1 2

the input line can be -1 0 1 0 0 meaning a 1 or -1 0 0 0 0 meaning 0