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. This value can be accessed outside of each interpreter/macro in Robot Is Chill.
〰️ Does nothing.

Example programs

⚑9βœ–οΈ8πŸ–¨οΈβž—7βœ–οΈ9⚑9πŸ“πŸ–¨οΈβš‘7πŸ–¨οΈπŸ–¨οΈβš‘3πŸ–¨οΈπŸ’Ύβž—9βœ–οΈ4⚑-5πŸ“πŸ–¨οΈβš‘-9⚑-3πŸ–¨οΈβœ–οΈ4βž—3βœ–οΈ2⚑2πŸ–¨οΈπŸ“²πŸ–¨οΈβš‘3πŸ–¨οΈβš‘-6πŸ–¨οΈβš‘-8πŸ–¨οΈβž—3πŸ“πŸ–¨οΈ outputs "Hello, World!"

  • (for Robot Is Chill, use =m x [by+/⚑9βœ–οΈ8πŸ–¨οΈβž—7βœ–οΈ9⚑9πŸ“πŸ–¨οΈβš‘7πŸ–¨οΈπŸ–¨οΈβš‘3πŸ–¨οΈπŸ’Ύ][by+/πŸ“²βž—9βœ–οΈ4⚑-5πŸ“πŸ–¨οΈβš‘-9⚑-3πŸ–¨οΈβœ–οΈ4βž—3βœ–οΈ2⚑2πŸ–¨οΈ][by+/πŸ“²πŸ–¨οΈβš‘3πŸ–¨οΈβš‘-6πŸ–¨οΈβš‘-8πŸ–¨οΈβž—3πŸ“πŸ–¨οΈ])

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.