Brainfuckrb
Installation
Isntall it with RubyGems:
$ gem install brainfuckrb
Usage
#!/usr/bin/env ruby
# hello_brainfuck.rb
hello_brainfuck = <<-eos
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++
++++++++++++.>.+++.------.--------.>+.>.
eos
bf Brainfuckrb::Brainfuck.new(hello_brainfuck)
bf.run
$ ./hello_brainfuck.rb
Hello World!
Or run brainfuck programs directly:
$ brainfuckrb hello.bf
$ Hello World!
Only the brainfuck control characters ><+-.,[]
are interpreted.
Others will be ignored.
Known bugs
- Input does not work
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request