Yayimhere-like esolang

From Esolang
Jump to navigation Jump to search

Yayimhere-like esolang is an esolang created by User:Ractangle based on User:Yayimhere's esolangs

syntax

Variable declaration:

Variable name » Value of that variable

just stops the program

push A to stack. Lasts untill a newline in code or a goto:⎵A

pop from the stack:

move the element to the other stack:

Same thing as but requires the stack pointer to point at the other stack:

pop the element from the stack and print it and check if the stack is empty. If the stack is empty do an action:

conditional:

⁇ if condition, do Action else skip this command ﹝Action﹞

creates a label (the label name must be a number in order of declaration from one to the last label declared)

a goto statement. can be used as concatinating commands if the argument is not a number

gets user input and pushes to the stack

m pops three top elements on the stack and checks if the first top element is 1. If it's 1. use the two poped elements do multiplication, else do division instead

o the m command but the operations are plus and minus

moves the stack pointer to the other stack and vise versa:

examples

Hello, world!

⎵Hello, world! ⏎ ⎋ ⚐

Truth-machine

i»⌨ ⏎ ⎵>i ⏎ ⁇ i&0 ﹝⏎1﹞ ⏎2
⚑1 ⎵0 ⏎ ⎋ ⚐
⚑2 ⎵1 ⏎ ⎋ ⏎2