Process a user input value.
The parser to use to convert user input lines into values.
Read lines from the console and pass non-null and non-whitespace only
ones to processline.
Read lines from the console and pass non-null and non-whitespace only
ones to processline. Continue until processline returns false. Call
setup before entering the loop and call prompt each time input is
about to be read. The command-line arguments are passed to the setup
method.
Process a user input line by parsing it to get a value of type T,
then passing it to the process method.
Process a user input line by parsing it to get a value of type T,
then passing it to the process method.
Define the prompt (default: "> ").
Define the prompt (default: "> ").
(Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
Carry out setup processing for the REPL.
Carry out setup processing for the REPL. Default: do nothing.
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
A REPL that parses its input lines into a value (such as an abstract syntax tree), then processes them.