File Structure
The basic structure every program must have is π
, after which comes a code block (begins with π
and ends with π
).
Source code files must have the extension .emojic or .π.
π π
π
π
and βοΈ
is used to display output.
π π
π π€Hello, world!π€βοΈ
π
Program Execution
In Emojicode, the program execution order goes from left to right; from top to bottom.
π π
π π€Hola!π€βοΈ
π π€ΒΏCΓ³mo estΓ‘s?π€βοΈ
π
Single-line Comments
In Emojicode, single-line comments are made with π
. Any text after the π
that is on the same line is not executed.
π The next line outputs "Hello"
π π€Helloπ€βοΈ
Multiline Comments
Multiline comments are created with ππ
and ππ
. Any text in between is not executed.
ππ
This is a comment.
It will be ignored by the compiler.
ππ