by+

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.

by+ is an esolang created by raff4814 on Discord that uses emojis for commands. It has a single accumulator, called the "zap variable", which is a float by default, as well as one slot for a savestate.

Commands

* denotes an optional argument.

Command Explanation
⚡<num> Increments the zap variable by <num>. Only supports positive/negative single-digit integers.
📍<*base> Rounds the zap variable down to the nearest integer. If <base> is given, then it also converts from that base.
👋 Stops the program.
⏏️ Outputs the zap variable as a number.
🖨️ Outputs the zap variable as an ASCII character. If a non-decimal digit is in the zap variable, it will raise an error.
0️⃣ Sets the zap variable to 0.
🎱<min>,<max> Sets the zap variable to a random integer between <min> and <max>. Supports multi-digit integers.
✖️<num> Multiplies the zap variable by <num>. Only supports positive/negative single-digit integers.
➗<num> Divides the zap variable by <num>. Only supports positive/negative single-digit integers.
🔝<num> Sets the zap variable to its exponent by <num>. Only supports positive/negative single-digit integers.
⛓️<num> Concatenates <num> at the end of the zap variable. Only supports positive/negative single-digit integers. Can concatenate numbers after the decimal point e.g. concatenating 6.0 with 3 will result in 6.03.
↔️<base> Converts the zap variable to the base <base>. Supports integers from 2 to 62. The list of base digits is as follows: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.
💾 Makes a savestate of the current value of the zap variable and stores it in the savestate slot.
📲 Loads the value of the savestate slot into the zap variable.
〰️ Does nothing.

Example programs

nothing here for now

Interpreters

raff4814 on Discord has made a by+ interpreter in Robot Is Chill macroscript, which is accessible from the by+ macro.

Computational class

by+'s computational class is currently unknown.