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.
Code
Call the file hello.π
or 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:
Comments
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 {
and π
is the equivalent of }
. An Emojicode program should have the format of
ππ
πcode here
π
Printing
π
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)
Conclusion
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)