Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 811 Bytes

README.md

File metadata and controls

41 lines (25 loc) · 811 Bytes

Brainfuck Transpiler

Convert all your brainfuck code to c++ code.

Building the transpiler

First of all clone the project and then execute cmake . && make in the newly created folder.

Using the transpiler

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!