bf2js is a AltJS . It translate brainf*ck to JS.
bf2js supports source-map.
so, you can debug brainf*ck on browser!
$ npm install -g bf2js
$ bf2js sample/a.bf
$ bf2js -p sample/a.bf
$ bf2js -h sample/a.bf
$ static &
$ open http://localhost:8080/a.html
$ bf2js -m sample/a.bf
$ bf2js -r a.bf
$ bf2js --help
Usage: bf2js [options] <filename>
Options:
-h, --help output usage information
-V, --version output the version number
-r, --run Running brainf*ck
-p, --print Print generated source to stdout
-m, --map Append source-map to generated code
-h, --html Generate html
- fork it (http://github.com/MakeNowJust/bf2js)
- create your feature branch (
git checkout -b my-new-feature
) - commit your changes (
git commit -am 'Add my new feature'
) - push to the branch (
git push origin my-new-feature
) - create new Pull Request
bf2js is released under the BSD-2-Clause.
Copyright 2014, TSUYUSATO Kitsune make.just.on@gmail.com