https://github.com/mrinalxdev/brainfk_rs
A Brainf**k interpreter built in rust
https://github.com/mrinalxdev/brainfk_rs
interpreter rust
Last synced: 11 months ago
JSON representation
A Brainf**k interpreter built in rust
- Host: GitHub
- URL: https://github.com/mrinalxdev/brainfk_rs
- Owner: mrinalxdev
- Created: 2024-03-22T04:37:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-11T15:58:42.000Z (over 1 year ago)
- Last Synced: 2025-01-20T17:21:46.020Z (about 1 year ago)
- Topics: interpreter, rust
- Language: Rust
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brainfuck Interpreter in Rust
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.
### Features
- 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.
## Installation
**Cloning the Repository**
```console
// bash
git clone https://github.com/mrinalxdev/brainfuck-interpreter-rust.git
cd brainfuck-interpreter-rust
```
**Build the Project**
```bash
cargo build --release
```
### Usage
To run the Brainfuck interpreter, you need to provide a Brainfuck source file as input.
```bash
cargo run --release
```
### Contribution
Contributions are welcome! Please open an issue or submit a pull request on GitHub.