Written by marcelpetrick
on March 28, 2016
What crazy times to live in. Finally possible to code with emojis. No, I don’t mean the “oh, my DSL supports unicode comprehensively”, I mean: “the whole grammar is based on emojis :3”.
My hello-world prints the first fibonacci numbers as a cat-paw-string. (Yes, I am aware, that NOW their frontpage offers also an fibonacci-example!)
code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
? date: 20160328 ? ⚽️ ? ?? ? ➡️ ? ? ? ?### goal: print the value of the first 13 fibonacci numbers as cat-paw-string ###? ? counter 0 ? limit 13 ? f0 0 ? f1 1 ? ◀️ counter limit ? ? newfib ➕ f0 f1 ? paws ? ??? f0 10 ?: ?? ? ▶️ f0 0 ? ? paws ? paws ??? ? ? f0 ? ? paws ? f0 f1 ? f1 newfib ? counter ? ? 0 ? ? |
compile & run:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ emojicodec fib_clean.emojic && emojicode fib_clean.emojib ### goal is to create a program which prints the value of the first 13 fibonacci numbers as cat-paw-string and then exits successfully ### 0: 1: ? 1: ? 2: ?? 3: ??? 5: ????? 8: ???????? 13: ????????????? 21: ????????????????????? 34: ?????????????????????????????????? 55: ??????????????????????????????????????????????????????? 89: ????????????????????????????????????????????????????????????????????????????????????????? 144: ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? |
Leave a Reply
You must be logged in to post a comment.