Skip to content

kevindotklein/brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

brainfuck interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages