Tyit

From Esolang
Jump to navigation Jump to search

Tyit is an esolang created by User:Ezya*. It is Turing-complete.

Functionality

Tyit uses a binary 2D grid where the X-axis is 8 bits long, in which it can store a single ASCII character, but the Y-axis is infinitely long. Each bit/cell is initially set to 0. Spaces and newlines are ignored. The program terminates and outputs the code when '|' is reached.

The cursor starts at the top-left and can be moved with the commands below.

Commands

Description Command
Move cursor left <
Move cursor right >
Move cursor up ^
Move cursor down v
Start loop (if current bit is 0, jump to matching command after B) A
End loop (if current bit is 1, jump to matching command after A) B
Flip bit of current location of cursor (0 -> 1, 1 -> 0) !
Slide cursor to start if not at start, and if at start, slide to end _
End program and print the whole grid |

Examples

Hello, World!

>!>>>!v_
>!>!>>>!>>!v_
>!>!>>!>!v_
>!>!>>!>!v_
>!>!>>!>!>!>!v_
>>!>>!>!v_
>>!v_
>!>>!>>!>!>!v_
>!>!>>!>!>!>!v_
>!>!>!>>>!v_
>!>!>>!>!v_
>!>!>>>!v_ 
>>!>>>>>!|

Truth-machine

assuming that the input is stored at y=0. Fills grid with '00110001' (ascii for 1) if input=1 but doesn't print

_Av_>>!>!>>>>!B|