blc 0.7.0

An implementation of the binary lambda calculus.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use blc::encoding::binary::decompress;
use blc::execution::Input;
use blc::*;

#[test]
fn identity() {
    let code_compressed = b" ";
    let code_blc = decompress(code_compressed);

    assert_eq!(
        run(&code_blc, Input::Bytes(b"herp derp")).unwrap(),
        "herp derp"
    );
}