braingear is a Brainfuck interpreter and compiler written in C.
It's designed to be simple, portable, and easy to use.
- Interprets the Brainfuck file
- Converts Brainfuck code into C code.
- Simple command-line interface.
- Easy compilation and installation using xmake.
To build, run the following commands:
git clone https://github.com/honakac/braingear.git
cd braingear
xmake build
Ensure you have a C compiler (e.g., gcc) and the make utility installed.
To run a Brainfuck file, use:
braingear run <input file>
To generate C code from a Brainfuck file, use:
braingear compile <input file> <output file>
Note
Examples are provided in the 'examples' directory.
Command:
braingear compile examples/helloworld.bf hello.c
Compile and run:
cc -O2 -march=native -pipe hello.c -o hello
./hello
Output:
Hello World!
rustyfuck - A Brainfuck interpreter written in Rust by OctoBanon
This project is licensed under the MIT license
If you have any questions or suggestions, feel free to reach out via GitHub: https://github.com/honakac/braingear