Skip to content

mrapacz/brainfuck_interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck

A simple brainfuck interpreter written in Elixir

Running

Run iex -S mix and then use the module in the following way:

  iex> Brainfuck.interpret "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
  "Hello World!\n"

  iex> Brainfuck.read                                                                            
  Input brainfuck code
  ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
  Hello World!

  :ok

About

A simple brainfuck interpreter written in Elixir

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages