tinybrain 0.1.2

A brainfuck interpreter written in Rust
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.93 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • russellwmy/tinybrain
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • russellwmy

tinybrain

A brainfuck interpreter written in Rust.

Overview

Tinybrain is a small interpreter to execute brainfuck code. To learn more about brainfuck, please visit https://en.wikipedia.org/wiki/Brainfuck

Usage

use tinybrain;

fn main() {
    let result = tinybrain::process(
    "
    ++++++++[>++++[>++>+++>+++>+<<<<-]
    >+>+>->>+[<]<-]>>.>---.+++++++..++
    +.>>.<-.<.+++.------.--------.>>+.
    ".to_owned(),
    );

    println!("{}", String::from_utf8(result).unwrap());
}