This project is a Brainfuck interpreter written in Rust. It reads Brainfuck source code from a file, parses it into instructions, and executes it. This interpreter supports all standard Brainfuck operations and includes a lexer, parser, and interpreter.
- Lexer: Reads Brainfuck source code and tokenizes it.
- Parser: Parses tokens into executable instructions.
- Interpreter: Executes the parsed Brainfuck instructions.
- Error Handling: Utilizes
anyhow
for robust error handling.
Cloning the Repository
// bash
git clone https://github.com/mrinalxdev/brainfuck-interpreter-rust.git
cd brainfuck-interpreter-rust
Build the Project
cargo build --release
To run the Brainfuck interpreter, you need to provide a Brainfuck source file as input.
cargo run --release <brainfuck_file>
Contributions are welcome! Please open an issue or submit a pull request on GitHub.