Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 884 Bytes

File metadata and controls

32 lines (22 loc) · 884 Bytes

Brainfetch

Brainfetch is a fun little Brainfuck-like library written in Rust with support for API fetching and a few other features that help with handling changing apis.

Installation

You can install from this repository by cloning the repo and building with cargo build. Alternatively, you can use this library by adding brainfetch_lib to your Cargo.toml.

Usage

use brainfetch_lib::BrainFetchInterpreter;
#[tokio::main]
async fn main() {
    let program = "+++++++[>+++++<-]>.";
    let mut interpreter = BrainFetchInterpreter::new(program);
    let s: String = interpreter.run().await;
    println!("{}", s);
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT