0.1.0 β€’ Published 5 years ago

emojicode-transpiler v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

emojicode-transpiler

Readability of Emojicode is high, but productivity of Emojicode is low because of the difficulty of emoji input. emojicode-transpiler will make coding with Emojicode much easier!

Installation

npm install -g emojicode-transpiler

Usage

  1. Create an Emojicode source file based on Emojicode syntax and Transpilation Table.

    // hello.πŸ‡
    
    :checkered_flag: {
      :grinning: "Hello World!" ;
    }
  2. Execute emojicode-transpiler with command emojit.

    emojit hello.πŸ‡

    Result would be like this.

    πŸ’­ hello.πŸ‡
    
    🏁 πŸ‡
      πŸ˜€ πŸ”€Hello World!πŸ”€ ❗️
    πŸ‰

Transpilation Table

emojitraditional coding keywordGFM keyword
❌\ | :x:
❗️;:exclamation:
πŸ‡{:grapes:
πŸ‰}:watermelon:
πŸ”€":abc:
πŸͺ` | :cookie:
πŸ’­//:thought_balloon:
πŸ’­πŸ”œ/*none
πŸ”šπŸ’­*/none
πŸ“—/**:green_book:
πŸ“—**/:green_book:
πŸ“˜/***:blue_book:
πŸ“˜***/:blue_book:
🀜(:fist_right:
πŸ€›):fist_left:
βž•+:heavy_plus_sign:
βž–-:heavy_minus_sign:
βœ–οΈ*:heavy_multiplication_x:
βž—/:heavy_division_sign:
🍨l[:ice_cream:
🍯d[:honey_pot:
πŸ†]:eggplant:
🍬::candy:
🍺unwrap:beer:
🏁main:checkered_flag:
πŸ˜€print:grinning:
πŸ–$:crayon:
πŸ–πŸ†•varnone
➑️->:right_arrow:
πŸ‘true:thumbsup:
πŸ‘Žfalse:thumbsdown:
πŸ‘Œboolean:ok_hand:
πŸ’§char:droplet:
πŸ”’long:1234:
πŸ’―double:100:
πŸ”‘string:abcd:
β†ͺ️ifnone
πŸ™…else:no_good:
πŸ”‚for:repeat_one:
πŸ”while:repeat:
⏩range:fast_forward:
⏭step:next_track_button:
πŸ™Œ=:raised_hands:
▢️>:arrow_forward:
β–ΆοΈπŸ™Œ>=none
◀️<:arrow_backward:
β—€οΈπŸ™Œ<=none
πŸ‡class:rabbit2:

What you should aware

Every traditional coding keywords are separated with whitespace characters. It's because Emojicode allows any letters for variable names except of whitespace. So, it can seem little bit awkward, but you have to separator every keyword if it is a traditional coding keyword.

For example, you should not write codes like this.

main {
  print "awsome!";
}

Instead, you should separate a double quote and a semicolon like below.

main {
  print "awsome!" ;
}

On the other hand, there is no limitation for gfm keywords. You can write codes like this.

main {
  :grinning: :abc:awsome!:abc::exclamation:
}

Reference