Skip to content

Ragnarok540/ruby-brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ruby-brain ><+-.,[]

Brainfuck interpreter in Ruby. Uses jump table and checks for unmatched [].

Help

$ ruby main.rb --help
usage: ruby main.rb [-h] [-v] file_name

positional arguments:
  file_name      brainfuck source code file

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  print version number on screen and exit

Usage

$ ruby main.rb ./hello.bf
Hello World!

Links