Isntall it with RubyGems:
$ gem install brainfuckrb
#!/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.
- Input does not work
- 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