A simple brainfuck interpreter in C++
g++ main.cpp -O2 -o bf
./bf '>+.' # Your code here
./bf "$(cat file.bf)" # To read from file
g++ compiler.cpp -o compiler
./compiler <path to code> > code.cpp
g++ -O2 code.cpp -o code
./code
- Lines after '%' are considered a comment
- Space between 2 '#' is considered a comment