pub fn script_to_engine(base: &Engine, script: &str) -> Option<Engine>
Creates an engine from a script by cloning a base engine and parsing the closure. On error, prints to stderr and emits JSON to stdout, returning None.