Whether lines consisting entirely of whitespace should be ignored or not.
Whether lines consisting entirely of whitespace should be ignored or not. Default: yes.
Read lines from the console and pass non-null ones to processline.
Read lines from the console and pass non-null ones to processline.
If ignoreWhitespaceLines is true, do not pass lines that contain
just whitespace, otherwise do. 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. Output is emitted using a configurable emitter.