An optimizing brainfuck interpreter in js
Go to file
Juhani Krekelä 2b6b6a96fb Add offsets to commands 2018-05-22 15:08:23 +03:00
.gitignore First commit 2018-05-21 23:55:48 +03:00
README.md Add offsets to commands 2018-05-22 15:08:23 +03:00
UNLICENSE First commit 2018-05-21 23:55:48 +03:00
gir.html First commit 2018-05-21 23:55:48 +03:00
gir.js Add offsets to commands 2018-05-22 15:08:23 +03:00

README.md

Gir is an optimizing brainfuck interpreter in Javascript.

Name

𒌋𒀜 gir (Sumerian) - n. kiln

License

Everything in the repo is under Unlicense / CC0.

Status

Gir can parse and prettyprint to Javascript console programs in brainfuck. Gir supports following optimizations:

  • Turn runs of +- or <> into one command
  • Turn [-] or [+] into one command
  • Add offsets to commands that modify tape, to reduce moving tape head