No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
zacstewart Merge pull request #1 from binford2k/patch-1
Add ability to run code in a file
Latest commit f35b5cb Jun 9, 2016


A toy brainfuck interpreter written in C++. I wrote this as a learning exercise to understand pointers. You can read about it here.

To Build

You need GCC.


Run It

./brainfuck -e ">++++++++[<+++++++++>-]<.>>+>+>++>[-]+<[>[->+<<++++>]<<]>.+++++++..+++.>
Hello World!
./brainfuck hello.b
Hello World!

Run a Brainfuck program as a script

#! /usr/local/bin/brainfuck
chmod +x script.b
Hello World!