Interpreter

The Interpreter wraps the underlying Scala interpreter functionality.

The Interpreter wraps the underlying Scala interpreter functionality.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

A code completion component which may be attached to an editor.

A code completion component which may be attached to an editor.

def interpret(code: String, quiet: Boolean): Result

Interprets a piece of code. Unlike interpret the result is not evaluated. That is, in the case off Success the result value will always be ().

Interprets a piece of code. Unlike interpret the result is not evaluated. That is, in the case off Success the result value will always be ().

def interpretWithResult(code: String, quiet: Boolean): Result

Interprets a piece of code

Interprets a piece of code

Value Params
code

the source code to interpret

quiet

whether to suppress result printing (true) or not (false)

Returns

the result of the execution of the interpreted code