Y/Y
Jump to navigation
Jump to search
Y/Y is an esolang created by User:Yayimhere that uses a stack(self.data = []), a register(self.code_ptr = 0), and something called data which is defined as the length of the stack minus 1(self.data_ptr = len(self.data) - 1)
Syntax
& prints every element on the stack
; Gets user input and pushes it to the stack
/ turns the top value on the stack into a binary number
Y set stack element at index data pointer to the char next to the command and skip it
# sets the data pointer to the value of code pointer - 1
$ set's the code pointer to the value of data pointer
L increment's the current code at the index of the code pointer
Other characters are pushed into the stack
Examples
Cat program
;&
Hello, world!
Hello, world!&