Skip to content

honakac/braingear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


braingear

braingear is a Brainfuck interpreter and compiler written in C.
It's designed to be simple, portable, and easy to use.

Features

  • Interprets the Brainfuck file
  • Converts Brainfuck code into C code.
  • Simple command-line interface.
  • Easy compilation and installation using xmake.

Build

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.

Usage

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>

For example (Compile program 'Hello, world'):

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!

See also

rustyfuck - A Brainfuck interpreter written in Rust by OctoBanon

License

This project is licensed under the MIT license

Contact

If you have any questions or suggestions, feel free to reach out via GitHub: https://github.com/honakac/braingear

About

Lightweight and simple Brainfuck interpreter/compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published