Skip to content

BrainRusted is a simple Brainf*ck interpreter written in Rust, designed for educational purposes. Explore the fundamentals of Brainf*ck while learning Rust programming!

License

Notifications You must be signed in to change notification settings

dev-diego-fully/brain-rusted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainRusted: Brainf*ck Interpreter in Rust

This is a simple interpreter for the Brainf*ck programming language, implemented in Rust. The project was created around 2020/2021 as a learning endeavor to practice Rust programming and to gain a better understanding of how interpreters work. While it is unlikely to receive updates in the future, it is not impossible.

Table of Contents

Features

  • Parses Brainf*ck code from a file.
  • Executes Brainf*ck instructions.
  • Supports all standard Brainf*ck commands: >, <, +, -, ., ,, [, ].

Installation

To run this project, you need to have Rust installed on your machine. Once you have Rust set up, you can clone the repository and build the project.

git clone https://github.com/dev-diego-fully/brain-rusted.git
cd brain-rusted
cargo build --release

Usage

After building the project, you can run the interpreter by passing the path to a Brainf*ck program as an argument:

cargo run path/to/your/brainf_ck_program.bf

Example

Here is a simple Brainf*ck program that prints "Hello, World!" when executed:

>++++++++[<+++++++++>-]<.
>++++[<+++++++>-]<+.
+++++++..
+++.
>>++++++[<+++++++>-]<++.
------------.
>++++++[<+++++++++>-]<+.
<.
+++.
------.
--------.
>>>++++[<++++++++>-]<+.

Save this code in a file (e.g., hello.bf) and run it with the interpreter:

cargo run hello.bf

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the GPLv3 License. See the LICENSE file for more details.

About

BrainRusted is a simple Brainf*ck interpreter written in Rust, designed for educational purposes. Explore the fundamentals of Brainf*ck while learning Rust programming!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages