Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 558 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 558 Bytes

brainfuck

brainfuck ref

running brainfuck programs through repl

iex -S mix

iex> Brainfuck.run ",+." # put the next ASCII character taken as input in out buffer
     # => returns a tuple with the current address, memory tape and the out buffer

interpreting brainfuck from a file

iex -S mix

iex> Cli.Reader.read_brainfuck "./examples/hello_world.b"
     # Hello, World!
     # => prints the out buffer

todo

  • nested loops
  • increase input buffer