Skip to content

πŸ…°οΈπŸ‘‰πŸ‡ Coding with Emojicode would be easier.

License

Notifications You must be signed in to change notification settings

3jins/emojicode-transpiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

npm version

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

emoji traditional coding keyword GFM 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:
πŸ–πŸ†• var none
➑️ -> :right_arrow:
πŸ‘ true :thumbsup:
πŸ‘Ž false :thumbsdown:
πŸ‘Œ boolean :ok_hand:
πŸ’§ char :droplet:
πŸ”’ long :1234:
πŸ’― double :100:
πŸ”‘ string :abcd:
β†ͺ️ if none
πŸ™… 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

About

πŸ…°οΈπŸ‘‰πŸ‡ Coding with Emojicode would be easier.

Resources

License

Stars

Watchers

Forks

Packages

No packages published