🥺

From Esolang
Jump to navigation Jump to search

🥺 is an unstack-based esoteric programming language written in 2021 by User:RocketRace. It is inspired by bottom by kaylynn234. It is a dialect of "bottom", a natural language used by bottoms.

Syntax

🥺 programs consist of a sequence of please-s to the runtime. Each please takes an argument as an integer (written in unary, as repeated 🥺 characters). Whitespace can be used to optionally delimit operators (to disambiguate 🥺). Other characters are ignored.

Unstack

Please-s operate on the unstack, which is like a stack but reversed; values are pushed and popped from/to the bottom of the unstack, and propagate upwards.

Once the program halts, the unstack is printed, from the bottom up. By default, each value should be encoded in unary (as repeated 🥺 characters) and delimited by a newline. Programs may choose to optionally encode the integers as unicode codepoints.

Please-s

Please
🥺🥺🥺
🥺N
Pushes an integer N to the bottom of the unstack.
💖N
Pops an integer from the unstack, and pushes the result of floor division of that integer by N to the unstack.
👉👈N
Take the Nth value in the unstack and swap it with the bottom value.
💓N
Pops two integers from the unstack, then pops and discards N values from the unstack, then pushes the product of the two popped integers to the unstack.
✨N
Duplicates the N values at the bottom of the unstack.
🫂N
Pop a value from the bottom of the unstack. Jump back N instructions if the value is nonzero.

Examples

🥺

External resources