Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anowell/emoji-lang
Emoji-based language built in ruby
https://github.com/anowell/emoji-lang
Last synced: about 1 month ago
JSON representation
Emoji-based language built in ruby
- Host: GitHub
- URL: https://github.com/anowell/emoji-lang
- Owner: anowell
- Created: 2015-05-17T04:24:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-20T03:23:46.000Z (about 9 years ago)
- Last Synced: 2024-04-24T13:36:24.537Z (8 months ago)
- Language: Ruby
- Size: 4.88 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Emoji Lang
[Emoji Lang](https://github.com/anowell/emoji-lang) on top of any Ruby Virtual Machine.
See the [emoji keywords](lib/tokens.rb) and/or [samples](samples).
**Open to suggestions and/or additional samples**
## INSTALLATION
gem install emoji_lang
## USAGE
```ruby
$ emojit my_script.emoj
```Example: [fizzbuzz](samples/fizzbuzz.emoj)
```
$ cat samples/fizzbuzz.emoj
🚌
✉🖘1
🏃 ✉ 🐁❤ 100
😸 ✉💣15 ❤ 0
🖊 "fizzbuzz"
😼 ✉💣3 ❤ 0
🖊 "fizz"
😼 ✉💣5 ❤ 0
🖊 "buzz"
😾
🖊 ✉
🙀
✉💪1
🚶
🎓
$ emojit samples/fizzbuzz.emoj
1
2
fizz
4
buzz
fizz
7
8
fizz
buzz
11
fizz
13
14
fizzbuzz
...
```You can turn on debug mode by using the -w option of the Ruby VM:
```ruby
$ ruby -w bin/emojit samples/HelloWorld.emoj
L0000: def main
L0001: puts "hello word"
L0002: end
L0003: main
hello word
```----------
Implementation derived heavily from [franckverrot/arnoldc.rb](https://github.com/franckverrot/arnoldc.rb)