pub fn run(blc_program: &[u8], input: Input<'_>) -> Result<String, Error>
Expand description
Executes a binary lambda calculus program, optionally feeding it the given argument.
More programs can be found in the tests
directory.
ยงExample
use blc::execution::run;
use blc::execution::Input::Bytes;
let reverse_blc = b"0001011001000110100000000001011100111110111100001011011110110000010";
assert_eq!(run(&*reverse_blc, Bytes(b"herp derp")), Ok("pred preh".into()));