brainfrick

Crates.iobrainfrick
lib.rsbrainfrick
version1.1.2
sourcesrc
created_at2020-05-18 18:15:30.251087
updated_at2020-10-20 21:06:04.868832
descriptionAn optimizing brainfuck interpreter with helpful errors.
homepage
repositoryhttps://github.com/Purpzie/brainfrick
max_upload_size
id243123
size43,672
Purpzie (Purpzie)

documentation

README

Brainfrick

Build crates.io

A brainfuck interpreter with helpful errors. See the documentation.

Usage

Add this to your Cargo.toml:

[dependencies]
brainfrick = "1.1.2"

Example

use brainfrick::Brainfuck;

let purpzie_sucks = Brainfuck::execute("
    ++++++++[>++++++++++<-]>.<++[>++++++++++<-]+++[>+++++<-]>+
    +.---.--.++++++++++.<++[>----------<-]>+++.----.<+++++++[>
    ----------<-]>+.<++++++++[>++++++++++<-]>+++.++.<+++[>----
    --<-]>.++++++++.++++++++.<++++++++[>----------<-]>--.
")?;

assert_eq!(purpzie_sucks, "Purpzie sucks!");

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 3

cargo fmt