Skip to content

russellwmy/tinybrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A brainfuck interpreter written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages