bftextmaker 0.2.0

Crate for rust to generate brainfuck code that prints out a given string
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 6.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 153.54 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • jacks0n9/bftextmaker
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jacks0n9

Bftextmaker

Usage

use bftextmaker::gen_code;
let (code,memory_used)=gen_code("The quick brown fox jumps over the lazy dog",15);
println!("Your code is: {}",code);
println!("Used {} cells",memory_used);

Hehe: ++++++++++++++[->+++>+++>+++>++++<<<<]>+>+++>++++>++++<<<...........>>>+++++++++++++++++++++++++++++++.<<.>++++++++++++++++.<<..>>.<<....>>.<<....>>.<<....>>--....>++.<++.<<..........>>..<<.>>.<<.............................>+.<.............................>.>--...<.>++...<<...................>.-..........+.<......>.>--...<.>++...<-..+.-..............+..>--...<.>++...<<...............>.-............+.<.>.<..........>.>--...<.>++...<<......>.-..........+.<......>.>--...<.>++...<-....................+.<.................>.-.............+.>--...<.>++...<<..............>.<..>.-..+.>--.<<.>.>..<.>++..<<....................>.>.<-.............+.<..............>.-...............+.<...................>.-....+.-.......+.-............+.<..........>.-......+.<.............>.>--..<<.>.>++..<.<...>.-..+.<.>.>--..<<.>.>.<.>++..<-.+.>.<-....+.<..>.-.........+.<...>.>--...<.>++.<<.......>.-.........+.>--.<.>++.<<......>.-..+.<..>.<..>.-......+.>--.<.>++...<<.......>.<.>.-...................+.<.................>..<.......>.-....+.<..>.-..+.>--..<.>.<.>++..<<......>.>.<-................+.<...............>.>--...<.>++...<-...................+.<............>.<..>.-.+.-.......+.>--...<.>++...<<..............>.-..+.>--...<.>++...<-.+.-...+.-...+..-.......+.-.+.