Emojicode
Emojicode Workshop
About
Emojicode is an open-source, full-blown programming language consisting of emojis.
Workshop
Please note that lines that begin with $, should be executed with the Terminal and are NOT program syntax. This workshop also assumes you have completed the Emojiterm workshop. The $ should not be pasted in the terminal.
All other code blocks should be considered valid Emojicode syntax.
Create a file.
$ π myprog.emojic
The simplest Emojicode program looks as follows.
π π π
To save and exit the text editor (nanoπ), first do Cntl+O, and then Cntl+X.
You can run it by first compiling it.
$ emojicodec greeter.emojic
Running it.
$ emojicode myprog.emojib
This program is so simple, it doesn't do anything.
The famous "Hello world!" example.
π π
π π€Hello world!π€
π
Making a variable...first the "frozen" type. Frozen means you can never change it. Here we make a variable called "a"
π¦ a 10
You can also compare two numbers with this program.
π π
π¦ a 10
π¦ b 4
π βΆοΈ a b π
π π€a is bigger than bπ€
π
π
User input.
π π
π¦ input π·π‘π― π€Ask something here?π€
π πͺπ€You said: π€ inputπͺ
π
Convert integers to strings and back.
ππ
π¦ a πΊ π π€9π€ 10
π βΆοΈ a 0 π
π π€a is bigger than 10π€
π π‘ a 10
π
π