oxygenlance 1.0.5

A simple crate to run BF Joust matches in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use oxygenlance::Warrior;

fn test_str(s: &str) {
    let warrior = Warrior::compile(s).unwrap();
    warrior.run_match(&warrior);
}

#[test]
fn test_bad_loops() {
    test_str("((((.)*0)*10000)*10000)*10000");
    test_str("(({.})*-1)*10000");
    test_str("((((.{.}.)*0)*10000)*10000)*10000");
}