The interactive shell. It provides a read-eval-print loop around
the Interpreter class.
After instantiation, clients should call the run
method.
Members
The context class loader at the time this object was created
A reverse list of commands to replay if the user requests a :replay
Record a command for replay should the user request a :replay
Close the interpreter
Run one command submitted by the user. Three values are returned: (1) whether to keep running, (2) the line to record for replay, if any.
interpret all lines from a specified file
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...
print a friendly help message
Print a welcome message
The main read-eval-print loop for the interpreter. It calls
command()
for each line of input.
The main read-eval-print loop for the interpreter. It calls
command()
for each line of input.
create a new interpreter and replay all commands so far
A list of commands to replay if the user requests a :replay
A reverse list of commands to replay if the user requests a :replay