PROGRAMCODEYOU

From Esolang
Jump to navigation Jump to search

PROGRAMCODEYOU is a version of SovietCode by User:Tommyaweosme

Commands

IN AMERICA, - optional. backwards version of script where everything is like it should be
IN SOVIET RUSSIA, - starts scripts
MEMORY CELL MOVE YOU!!! - moves memory pointer to right
MEMORY CELL MOVE YOU BACK!!! - moves memory pointer to left
WHEN NOT 0 IS CELL, ()!!! - brackets in brainfuck
CELL INCREMENT YOU!!! - adds one to cell
CELL DECREMENT YOU!!! - subtracts one to cell
OUTPUT IS CELL!!! - outputs current cell as ascii
CELL ENTER INPUT!!! - ascii input into cell

Turing-completeness proof

> MEMORY CELL MOVE YOU!!!
< MEMORY CELL MOVE YOU BACK!!!
[ WHEN NOT 0 IS CELL, (
] )!!!
+ CELL INCREMENT YOU!!!
- CELL DECREMENT YOU!!!
. OUTPUT IS CELL!!!
, CELL ENTER INPUT!!!

Ascii loop

IN AMERICA,
YOU INCREMENT CELL
WHEN CELL IS NOT 0, (
CELL IS OUTPUT
YOU INCREMENT CELL
)
IN SOVIET RUSSIA,
CELL INCREMENT YOU!!!
WHEN NOT 0 IS CELL, (
OUTPUT IS CELL!!!
CELL INCREMENT YOU!!!
)!!!