BrainPP is a Brainfuck interpreter made in C++.
- Put
brainpp.cpp
andbrainpp.hpp
inside your code folder:
- Include the
.hpp
file in yourmain.cpp
:
#include "brainpp.hpp"
- Choose between the easy method and the full method
BrainPP::brainpp(<code>);
or
BrainPP::brainpp(<file>, true);
BrainPP::BrainPP bp = BrainPP::BrainPP();
bp.run(<code>, false);
or
BrainPP::BrainPP bp = BrainPP::BrainPP();
bp.run(<file>, true);
#include "brainpp.hpp"
int main() {
BrainPP::BrainPP bp = BrainPP::BrainPP();
bp.run("Fibonacci.bf", true);
return 0;
}