by+
- 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 string whose default value is "0"
(but is treated as a float by mathematical operations) 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. |
πββοΈ |
Removes the last character of the zap variable. |
There are also additional functions in Robot Is Chill that can be accessed using the by+.functions.
macros in the second argument of the by+
macro:
(todo: write this)
Example programs
Hello World:
β‘9βοΈ8π¨οΈβ7βοΈ9β‘9ππ¨οΈβ‘7π¨οΈπ¨οΈβ‘3π¨οΈπΎβ9βοΈ4β‘-5ππ¨οΈβ‘-9β‘-3π¨οΈβοΈ4β3βοΈ2β‘2π¨οΈπ²π¨οΈβ‘3π¨οΈβ‘-6π¨οΈβ‘-8π¨οΈβ3ππ¨οΈ
- (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. If you don't have Discord, you can use Macrosia to test by+ using Robot Is Chill macroscript commands. (make sure to remove the =m x
at the start of each RIC command when using Macrosia!)
Computational class
by+'s computational class is currently unknown.