Now let's take a look at Emojicode. Emojicode was built on C/C++ and like its name suggests, this is a programming language that uses emojis.
Call the file
hello.emojic if your computer doesn't have emoji support.
💭🔜 Hello World First Emojicode program 🔚💭 🏁 🍇 😀 🔤Hello, World!🔤❗️💭 Prints "Hello, World!" 🍉
How Does This Work?
Let's break this code down step by step:
The first part
💭🔜 Hello World First Emojicode program 🔚💭
is a multiline comment. Emojicode does have a documentation style for classes, protocols, etc. Multiline comments usually are put at the header of a file to give a quick description of the file.
💭 is the symbol for a single line comment so
💭 Prints "Hello, World!" is ignored by the compiler.
The Start of a Program
Each Emojicode program has
🏁 to mark the starting point of the program.
🍇 is pretty much the equivalent of
🍉 is the equivalent of
}. An Emojicode program should have the format of
🏁🍇 💭code here 🍉
😀 indicates the start of a print
❗️ indicates the end of a print
🔤 indicates the stuff in between is a string (basically “ in common programming languages)
Emojicode can actually be used to do a surprising amount of things. While I personally have not tried, the language does support object oriented programming, threading, potentially some functional programming as well. Hello, World! is far from reaching the full potential of Emojicode but it's somewhere to start.
Comment a language you'd like to see next!
Top comments (0)