🎣 another esoteric language
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples
spec
src
.editorconfig
.gitignore
.travis.yml
Makefile
README.md
commands.md
shard.yml

README.md

Build Status

rod

rod is an esoteric, stack-based, interpreted language written in Crystal. It really isn't that useful unless you're in the business of writing verbose, difficult-to-read code that can't do more than print characters.

But print characters it can do very, very well.

The full language API is listed in commands.md.

You can try it online!

Install

git clone https://github.com/ayazhafiz/rod.git && cd rod
make

Usage

Usage: rod [args]
    -c INPUT, --convert=INPUT        Converts file or text to rod
    -h, --help                       Show this help

args can be a string, a .fish file, or an series of .fish files.

INPUT can be a string, a .fish file, or a .txt file.

Examples

Hello World
^^^^+***/+++*+**+&/+++*+&/&/+++&/
_
^^^+**+*+*+/+++***&/+++&/+++**+*+**/+++***+**/^^^^^^+/
Alphabet (A-Z)
^^^^^^^+      ;; set accumulator to 65
        /     ;; print accumulator to stdout
  (           ;; START loop
    +,        ;; add 1 to the accumulator on each iteration
    +++***+   ;; iterate 25 times
  )           ;; END loop

;; minimized
^^^^^^^+/(+,+++***+)

Inspired by ;#*