Record a command for replay should the user request a :replay
Tries to create a JLineReader, falling back to SimpleReader: unless settings or properties are such that it should start with SimpleReader.
Close the interpreter and set the var to null.
Run one command submitted by the user.
Run one command submitted by the user. Two values are returned: (1) whether to keep running, (2) the line to record for replay, if any.
Available commands
Create a new interpreter.
print a friendly help message
Show the history
Try to install sigint handler: ignore failure.
Try to install sigint handler: ignore failure. Signal handler will interrupt current line execution if any is in progress.
Attempting to protect the repl from accidental exit, we only honor a single ctrl-C if the current buffer is empty: otherwise we look for a second one within a short time.
interpret all lines from a specified file
Interpret expressions starting with the first line.
Interpret expressions starting with the first line. Read lines until a complete compilation unit is available or until a syntax error has been seen. If a full unit is read, go ahead and interpret it. Return the full string to be recorded for replay, if any.
The main read-eval-print loop for the repl.
The main read-eval-print loop for the repl. It calls command() for each line of input, and stops when command() returns false.
The context class loader at the time this object was created
The context class loader at the time this object was created
Power user commands
Print a welcome message
Print a welcome message
process command-line arguments and do as they request
Prompt to print when awaiting input
create a new interpreter and replay all commands so far
A reverse list of commands to replay if the user requests a :replay
A list of commands to replay if the user requests a :replay
Search the history
fork a shell and run a command
Standard commands *
Use intp
instead.
Use intp
instead.
Use process
instead
Use process
instead
The Scala interactive shell. It provides a read-eval-print loop around the Interpreter class. After instantiation, clients should call the main() method.
If no in0 is specified, then input will come from the console, and the class will attempt to provide input editing feature such as input history.
1.2