Why Does This Towel Smell Different Each Time I Use It

From Esolang
(Redirected from WDTTSDETIUI)
Jump to navigation Jump to search

Why Does This Towel Smell Different Each Time I Use It is an esolang created by User:LarhoCherqi, with other names being WDTTSDETIUI or Towellang. WDTTSDSETIUI's data structure consists of infinite stacks and a register called mem. mem starts at 0 and can be used to replace any value name in a command.

Commands

Command Meaning
make X makes a new empty stack called X
push A X pushes the value A onto the stack X
pop X pops the top value of stack X
towel A B generates a random number between A and B and sets mem to this number
print X prints the top value on stack X as a number
letter X prints the top value on stack X as an ASCII character
add X adds the top value of stack X with mem and stores the result back into mem
input gets one byte of input from the user and overwrites mem with it
while X if the top value of stack X and mem are equal, jump to the matching end command
end if the stack specified in the matching while's top value and the value of mem aren't equal, jump back to the matching while command

Note: print and letter commands can have mem as parameters.

External links

A compiler for WDTTSDETIUI has been made by the esolang's creator: WDTTSDETIUI Compiler