EmojiLang (Mihai Popa)

From Esolang
Jump to navigation Jump to search

EmojiLang is a esolang made by Mihai Popa, based on only emoji. :)

Commands

Command list
Emoji Meaning
🖨️🔡Something🔡 Prints a text string
🖨️Variable Prints a variable
❔Variable Asks for user input
5➕5➡️Variable Adds two numbers and stores the result in a variable (you can do also with more numbers, like three/four/five numbers, etc...)
5➖5➡️Variable Subtracts two numbers and stores the result in a variable (you can do also with more numbers, like three/four/five numbers, etc...)
5✖️5➡️Variable Multiplies two numbers and stores the result in a variable (you can do also with more numbers, like three/four/five numbers, etc...)
5➗5➡️Variable Divides two numbers and stores the result in a variable (you can do also with more numbers, like three/four/five numbers, etc...)
⁉️Truth🟰5 If expression
🎌⁉️Truth🟰5 Else If
🎌 Else
❓Truth🟰5 While loop
🛑❓ Stop while loop
🔁 Start loop
🛑🔁 Stop loop
Variable🟰🔡Hello🔡 Sets a variable to a value
💬This is a comment, any text goes here Marks a single line comment

Syntax

It's like a simplified version of BASIC, using only emoji. Wrap the value in this emoji: "🔡" if you want a text string, otherwise it would be a number. Comments don't require that emoji for text strings.

Comments are marked with this syntax:

💬This is a comment, any text goes here

Multi-line comments are supported! See this syntax:

🏁💬
This is a comment, any text goes here
Bla bla bla
Lorem ipsum dolor sit amet!
The quick brown fox...
💬🔚

Also nesting is supported. Example syntax:

🏁💬
This is a comment, any text goes here
Bla bla bla
🏁💬
Lorem ipsum dolor sit amet!
🏁💬
Hello,
World!
💬🔚
The quick brown fox...
💬🔚
💬🔚

Examples

Hello, world!

🖨️🔡Hello, world!🔡

Cat

❔Cat
🖨️Cat

XKCD Random Number

🖨️🔡4🔡

Truth Machine

Note that this is the longest program in this language...

💬This is a Truth Machine in EmojiLang!
❔Truth
⁉️Truth🟰0
🖨️Truth
💬This is the first part, when the user types "0" and it prints "0".
❓Truth🟰1
🔁
🖨️🔡1🔡
🛑🔁
💬This is the second part, when the user types "1" and loops printing "1".