Dotty Documentation

0.3.0-bin-SNAPSHOT

trait Interpreter

The exported functionality of the interpreter

[-] Constructors

[-] Members

[+] def beQuietDuring ( operation: => T ) : T

Suppress output during evaluation of operation.

[+] def bind ( id: String , boundType: String , value: AnyRef ) ( implicit ctx: Context ) : Result

Tries to bind an id to a value, returns the outcome of trying to bind

[+] def delayOutputDuring ( operation: => T ) : T

Suppresses output and saves it for lastOutput to collect

[+] def interpret ( line: String ) ( implicit ctx: Context ) : Result

Interpret one line of input. All feedback, including parse errors and evaluation results, are printed via the context's reporter. Values defined are available for future interpreted strings.

[+] def lastOutput ( ) : Seq [ String ]

Gets the last output not printed immediately