We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

↑→↓

From Esolang
Jump to navigation Jump to search

↑→↓ pronounced up to down(can be shortened to UTD as ill be writing it on this page) is a esolang invented by User:Yayimhere as an abstract machine where you create and change states of 3 different simulated computers who can send their states to each other. each computer runs in order from computer 1 to computer 3.

overview

each computer has a label which is as follows:

labels
label computer
↑ computer 1
→ computer 2
↓ computer 3

each computer can hold one value which can all be set to something else in a state. "States" are in reality strings of commands. Every command which doesn't modify state should be within a state (state modifying commands can also be inside a state).

syntax

the syntax of UTD

syntax of UTD
instruction description
@A[B] set computer A's state to state
@A/[B][C]/[D][E] if computer A's state is B set its state to C and if its D set the state to E
[A]: define state A as all the lines underneath this line until the last indented line in the block of indented lines
@A-@B(+)=@C add computer A's value and computer B's value and store it into computer C
@A=#B set computer A's value to the value B
@A[B]! loop B as long as computer A's value is non 0
@A:- negate computer A's value
; print all the computer values as ascii chars
: print all the computer values as numbers
,@A set computer A's value to user input(number)
@A[] represents the state of computer A

examples

truth-machine:

[truth-machine]:
    ,@↑@↑[:]!:
@↑[truth-machine]