[][src]Function artichoke::repl::run

pub fn run<Wout, Werr>(
    output: Wout,
    error: Werr,
    config: Option<PromptConfig>
) -> Result<(), Box<dyn Error>> where
    Wout: Write,
    Werr: Write + WriteColor

Run a REPL for the mruby interpreter exposed by the mruby crate.

Errors

If printing the interpreter copyright or compiler metadata fails, an error is returned.

If initializing the Ruby parser fails, an error is returned.

If an exception is raised on the interpreter, then an error is returned.

If writing expression results or exception backtraces to stdout and stderr fails, an error is returned.

If an unhandled readline state is encountered, a fatal error is returned.