EmojiScript
EmojiScript copied to clipboard
A fork of TypeScript with better emoji support
EmojiScript
A fork of TypeScript with Emoji support.
Example
📜fizzbuzz(n: 📊): 🕳️ {
💈(🏷i 👈🏽 🍩; i⏮️n; i🎂) {
🤔(i🍕⠏ 🤝 🍩) {
console.log("FizzBuzz")🙇♂️
} 🤷🤔(i🍕⠃ 🤝🏽 🍩) {
console.log("Fizz")🙇🏽♀️
} 🤷🏿♂️🤔(i🍕⠅ 🤝🏿 🍩) {
console.log("Buzz")🙇🏿♀️
} 🤷🏻♂️ {
console.log(i)🙇🏼♂️
}
}
}
fizzbuzz(⠃⣨)🙇♀️
Docs
Emoji Aliases
Emoji | Token |
---|---|
🤔 | if |
🤷 | else |
📜 | function |
💈 | for |
👉 | let |
🏷 | let |
🈚 | null |
🙇 | ; |
➕ | + |
➖ | - |
✖️ | * |
➗️ | / |
🍕️ | % |
👈 | = |
📥 | = |
🤝 | === |
⏮️ | <= |
⏪ | < |
⏩ | > |
⏭️ | >= |
🎂 | ++ |
🕳️ | void |
📰 | string |
📊 | number |
☯️ | boolean |
Additional Syntaxes
Syntax | Meaning |
---|---|
‼️ expr |
Converts given expr to a Boolean. |
🍩 |
Numeric Literal 0 . |
Braille Numeric Literal
EmojiScript supports Braille Numeric Literals for specifying integers in base-256 system, using Braille characters (⠀, ⠁, ⠂, ⠃, ..., ⣾, ⣿).
Examples:
Braille Syntax | Resulting Number |
---|---|
⠀ | 0 |
⠃ | 3 |
⣿ | 255 |
⠃⣨ | 1000 |
Express Yourself with Code.
EmojiScript supports all skin tones and genders available as emoji.
🤷🏻♂️🤷♂️🤷🏼♂️🤷🏽♂️🤷🏾♂️🤷🏿♂️🤷🏻♀️🤷♀️🤷🏼♀️🤷🏽♀️🤷🏾♀️🤷🏿♀️
License
All credit goes to Microsoft, founder of TypeScript.