We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

R

From Esolang
Jump to navigation Jump to search

R is an esolang. It is called that, because "R" is the only letter left. Values are stored in unicode characters.

�, Unicode code 0, is a nop.

�, Unicode code 1, starts the program.

�, Unicode code 2, starts a string.

�, Unicode code 3, ends a string and prints it.

�, Unicode code 4, ends the program.

�, Unicode code 5, asks the user for input and stores the character into the next character in the code. It then skips the next character.

�, Unicode code 6, prints the value of the next character in the code, then skips the next character.

�, Unicode code 7, doubles the value of the next character in the code, then skips the next character.

�, Unicode code 8, sets the value of the next character in the code to 0, then skips the next character.

, Unicode code 9, jumps to the number character in the code of the value of the next character in the code.


, Unicode code 10, jumps to the beginning of the code.

�, Unicode code 11, jumps to the number character of the value of the next character in the code, if and only if the character after the next character's value is equal to its own.

�, Unicode code 12, resets the values of all characters.


, Unicode code 13, jumps back to the beginning of the code and resets the values of all characters.

�, Unicode code 14, reads the code backwards.

�, Unicode code 15, reads the code forwards.

�, Unicode code 16, copies the value of the following character to the character after that, and then skips both of those characters.

�, Unicode code 17, sets the value of the following character to 1, and then skips it.

�, Unicode code 18, sets the value of the following character to 2, and then skips it.

�, Unicode code 19, sets the value of the following character to -3, and then skips it.

�, Unicode code 20, sets the value of the following character to -4, and then skips it.

�, Unicode code 21, prints its own value.

�, Unicode code 22, prints a new line.

�, Unicode code 23, jumps to the last character of the program.

�, Unicode code 24, skips the next character.

�, Unicode code 25, ends the program if its own value is 0.

�, Unicode code 26, copies the value of the character after it to itself and skips the next character.

�, Unicode code 27, acts as the character of its own value.

�, Unicode code 28, makes this, and the next four characters in the code act as if they don't exist. (For formatting purposes)

�, Unicode code 29, makes this, and the next three characters in the code act as if they don't exist. (For formatting purposes)

�, Unicode code 30, makes this, and the next two characters in the code act as if they don't exist. (For formatting purposes)

�, Unicode code 31, makes this, and the next character in the code act as if they don't exist. (For formatting purposes)

, Unicode code 32, outputs a space.

!, Unicode code 33, performs a logical NOT on the following character's value, and then skips it.

", Unicode code 34, copies its value to the character after, and skips it.

  1. , Unicode code 35, subtracts 48 from the value of the next character and skips it.

When a value is printed, it is printed as a character.

Locations in the code are 0 indexed.

All characters start of with a value of 0.

Example programs

Hello World

��Hello, World!��

If the characters don't render properly, I'm sorry.

Truth-Machine

�����#�������	�