Module repl

Source
Expand description

A REPL (read–eval–print–loop) for an Artichoke interpreter.

The REPL is readline enabled, but does not save history. The REPL supports multi-line Ruby expressions, CTRL-C to break out of an expression, and can inspect return values and exception backtraces.

Structs§

ParserAllocError
Failed to initialize parser during REPL boot.
ParserInternalError
Internal fatal parser error.
ParserLineCountError
Parser processed too many lines of input.
PromptConfig
Configuration for the REPL readline prompt.

Functions§

run
Run a REPL for the Artichoke interpreter exposed by the artichoke-backend crate.