pub fn run<Wout, Werr>(
output: Wout,
error: Werr,
config: Option<PromptConfig<'_, '_, '_>>,
) -> Result<(), Box<dyn Error>>
Expand description
Run a REPL for the Artichoke
interpreter exposed by the
artichoke-backend
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.