Convert all your brainfuck code to c++ code.
First of all clone the project and then execute cmake . && make
in the newly created folder.
The Transpiler takes as argument a file containing the brainfuck source code. Using it to transpile cat.txt looks like this:
./bfuck example/cat.txt
which generates out.cpp
.
The complete flow looks like this:
./bfuck example/cat.txt
clang++ out.cpp
./a.out
Or a one liner:
./bfuck example/cat.txt && clang++ out.cpp && ./a.out
Feel free to contribute by opening issues or creating PR's.
Enjoy converting your BF code!