bfmod 0.1.0

Brainfuck lexer and compiler library for Rust.
Documentation
  • Coverage
  • 19.05%
    4 out of 21 items documented4 out of 9 items with examples
  • Size
  • Source code size: 12.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 596.42 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aiocat

bfmod

Brainfuck lexer and compiler library for Rust.

Links

Example Usage

use bfmod;

fn main() {
    println!("Starting to lexerize...");
    let tokens = bfmod::lexer::execute(">++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<++.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-]<+.");
    println!("Lexerizing is finished.");
    println!("Checking syntax errors.");

    match bfmod::lexer::check_brackets(&tokens) {
        Ok(()) => {
            println!("Building the source code.");
            bfmod::compiler::build(&tokens, "compiled.rs");
        },
        Err(msg) => {
            println!("Error ({})", msg)
        }
    }
}

Found a Bug / Error?

If you found a bug or an error, please create a new issue at gitlab repository.

Contributing

If you want to contribute this project:

  • Make sure you add the comments for your codes.
  • Please do not something useless.

Authors

License

This project is distributed under MIT license.

Project status

Under development.