Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 556 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 556 Bytes

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());
}