Skip to content

timvisee/brainfuck-rs-quick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick brainfuck interpreter in Rust

→ See simple implementation

Note: the base implementation is already working. The optimization procedure is still a work in progress though.


A quick brainfuck interpreter implemented in the Rust language.

This implementation is focussed on being as quick as possible. This is my approach of building a quick interpreter, I'm sure there are quicker interpreters out there.

Usage

For installation, Git and Rust cargo are required. Install the latest version of Rust with rustup.

# Clone the project
git clone https://github.com/timvisee/brainfuck-rs-quick.git
cd brainfuck-rs-simple

# View help
cargo run --release -- --help

# Run a program
cargo run --release -- programs/hello_world.b

# Test
cargo test

Help

brainfuck-rs-quick --help

brainfuck-rs-quick 0.1
Tim Visée <[email protected]>
A quick brainfuck interpreter in Rust.

USAGE:
    brainfuck-rs-quick [FLAGS] <FILE>

FLAGS:
    -b, --buffer      Buffer output until the program is finished
    -d, --describe    Describe interpreted and optimized program logic
    -h, --help        Prints help information
        --pretty      Pretify described program logic
    -p, --profiler    Enable the profiler to interpreter stages
    -V, --version     Prints version information

ARGS:
    <FILE>    Brainfuck file to interpret

License

This project is released under the GNU GPL-3.0 license. Check out the LICENSE file for more information.