Function sbrain::evaluate [] [src]

pub fn evaluate(source: &str, limit: Option<u32>) -> EvalResult

Run the program represented by the given source on a new Semantic Brain VM. If Limit is None, this may never return; if it is Some(n), the machine will run for at most n cycles, then stop.

Panics

This function panics if the source evaluates to tapes that exceed the maximum size of the VM's tapes (216 )