Last active
November 2, 2020 08:40
-
-
Save Lokajit/06c52f6adbac032a9652a13f75de02c9 to your computer and use it in GitHub Desktop.
Documentation of all the tokens in Emoji programming language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
π¬: Read until the next π¬ and puts that string onto the stack | |
β½: Reads until the next π and puts that string onto the stack (can be nested, meant for storing functions) | |
β‘: Prints a value from the stack | |
π²: Puts True onto the stack | |
π³: Puts False onto the stack | |
π΄: Inverts a boolean value from the stack | |
π«: Adds two numbers from the stack | |
πͺ: Multiplies two numbers from the stack | |
π: Subtracts two numbers from the stack | |
π΄: Divides two numbers from the stack | |
πΈ: Divides two numbers from the stack, returns the remainder | |
πΏ: Rounds a number to the nearest integer | |
π₯: Rounds down a number from the stack | |
π€: Rounds up a number from the stack | |
π: Converts a number to a hex string | |
π’: Converts a string to a number | |
π¬: Checks if two numbers are equal | |
π£: Checks if a number is less than another | |
π: Checks if a number is greater than another | |
π: Takes a boolean from the stack. If false, skips to the next π§. | |
π: If the last π did not skip past stuff, skip to the next π§. | |
π: Takes two strings from the stack. Runs the first, takes a boolean. If true, runs the second and repeats. | |
π₯: Duplicates a stack entry | |
π£: Converts a character to its character code | |
π: Converts a character code to its character | |
π²: Takes two objects, saves the first to a variable identified by the second | |
π±: Takes an object, returns the value from the variable by that name | |
π: Returns the length of a string or array from the stack | |
β: Takes a string and two numbers. Returns the substring from the string from the first number (inclusive) to the second number (exclusive). | |
π: Evaluates a string | |
π: Creates an empty array. | |
π: Takes an array and an object. Adds the object to the end of the array. Does not return anything, you'll want to use variables with this. | |
π: Takes an array or string and an index. Returns the value at that index. | |
π: Swaps two elements on the stack. | |
π: Capitalize a string. | |
π: Change a string to lowercase. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment