Function blc::execution::run
[−]
[src]
pub fn run(blc_program: &[u8], input: Input) -> Result<String, Error>
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()));