dsouzadyn / cerebrallib

A VM library for brainf**k written in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cerebrallib

Cerebrallib is a library for creating a brainfuck VM.

Rust

Installation

  1. Create a new cargo project
$ cargo new project_name
$ cd project_name
  1. Install cargo-edit
$ cargo install cargo-edit
  1. Install cerebrallib
$ cargo add cerebrallib --git https://github.com/dsouzadyn/cerebrallib
  1. Done

Usage

  1. Code
// src/main.rs code
use cerebrallib::cerebral;
use std::io
fn main() {
    let code = String::from("++++");
    let mut vm = cerebral::CerebralVM::new(code, io::stdin(), io::stdout());
    vm.execute();
}
  1. Build
$ cargo build
  1. Run
$ cargo run

About

A VM library for brainf**k written in rust

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%