Y/Y

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Y/Y is an esolang created by User:Yayimhere. The only thing is known about this esolang is that it has an interpreter generated by AI and the language being stack-based.

data

there is an 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

The information is not fully done yet. You can contribute on adding more syntax info here

& 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 index self_ptr to the following single number digit and skip it and another character
Other characters are pushed into the stack
L, $ and # haven't been syntaxed yet

Examples

Cat program

;&

Hello, world!

Hello, world!&

Interpreter