Record a command for replay should the user request a :replay
Record a command for replay should the user request a :replay
Parse the ScalaSig to find type aliases
Parse the ScalaSig to find type aliases
Translate a repl-defined identifier into a Symbol.
Translate a repl-defined identifier into a Symbol.
Temporarily be quiet
Temporarily be quiet
Bind a specified name to a specified value.
Bind a specified name to a specified value. The name may later be used by expressions passed to interpret.
the variable name to bind
the type of the variable, as a string
the object value to bind to it
an indication of whether the binding succeeded
Tries to create a JLineReader, falling back to SimpleReader: unless settings or properties are such that it should start with SimpleReader.
Tries to create a JLineReader, falling back to SimpleReader: unless settings or properties are such that it should start with SimpleReader.
This instance is no longer needed, so release any resources it is using.
This instance is no longer needed, so release any resources it is using. The reporter's output gets flushed.
Close the interpreter and set the var to null.
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
Available commands
Compile an nsc SourceFile.
Compile an nsc SourceFile. Returns true if there are no compilation errors, or false otherwise.
Compile a string.
Compile a string. Returns true if there are no compilation errors, or false otherwise.
Create a new interpreter.
Create a new interpreter.
Given a simple repl-defined name, returns the real name of the class representing it, e.
Given a simple repl-defined name, returns the real name of the class representing it, e.g. for "Bippy" it may return
$line19.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$Bippy
the public, go through the future compiler
the public, go through the future compiler
Stubs for work in progress.
Stubs for work in progress.
print a friendly help message
print a friendly help message
Show the history
Show the history
Tuples of (source, imported symbols) in the order they were imported.
Tuples of (source, imported symbols) in the order they were imported.
Interpret one line of input.
Interpret one line of input. All feedback, including parse errors and evaluation results, are printed via the supplied compiler's reporter. Values defined are available for future interpreted strings.
The return value is whether the line was interpreter successfully, e.g. that there were no parse errors.
interpret all lines from a specified file
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.
interpreter settings
interpreter settings
Symbols whose contents are language-defined to be imported.
Symbols whose contents are language-defined to be imported.
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.
Returns the name of the most recent interpreter result.
Returns the name of the most recent interpreter result. Mostly this exists so you can conveniently invoke methods on the previous result.
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
Power user commands
Print a welcome message
Print a welcome message
process command-line arguments and do as they request
process command-line arguments and do as they request
Prompt to print when awaiting input
Prompt to print when awaiting input
create a new interpreter and replay the given commands
create a new interpreter and replay the given commands
A reverse list of commands to replay if the user requests a :replay
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
A list of commands to replay if the user requests a :replay
Search the history
Search the history
Types which have been wildcard imported, such as: val x = "abc" ; import x.
Types which have been wildcard imported, such as: val x = "abc" ; import x._ // type java.lang.String import java.lang.String._ // object java.lang.String
Used by tab completion.
XXX right now this gets import x._ and import java.lang.String._, but doesn't figure out import String._. There's a lot of ad hoc scope twiddling which should be swept away in favor of digging into the compiler scopes.
fork a shell and run a command
fork a shell and run a command
Standard commands *
Standard commands *
Another entry point for tab-completion, ids in scope
Another entry point for tab-completion, ids in scope
Leading with the eagerly evaluated.
Leading with the eagerly evaluated.
Reset this interpreter, forgetting all user-specified requests.
Reset this interpreter, forgetting all user-specified requests.
(interpreterLoop: IMain).reset()
(interpreterLoop: StringAdd).self
(interpreterLoop: StringFormat).self
(interpreterLoop: IMain).settings
(Since version 2.9.0) Use global
for access to the compiler instance.
(Since version 2.9.0) Use intp
instead.
(Since version 2.9.0) Use intp
instead.
(Since version 2.9.0) Use process
instead
(interpreterLoop: ArrowAssoc[InterpreterLoop]).x
(Since version 2.10.0) Use leftOfArrow
instead
(interpreterLoop: Ensuring[InterpreterLoop]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A compatibility stub.
(Since version 2.9.0) Use a class in the scala.tools.nsc.interpreter package.