Add REPL interfaces to scripting API

This commit is contained in:
Ilya Chernikov
2018-07-16 10:31:58 +02:00
parent 5ca4a21edf
commit d0ed86c11c
8 changed files with 180 additions and 3 deletions
@@ -24,7 +24,6 @@ import kotlin.script.experimental.api.*
abstract class BasicScriptingHost(
val compiler: ScriptCompiler,
// TODO: does it belong here or to the definition?
val evaluator: ScriptEvaluator
) {
open fun <T> runInCoroutineContext(block: suspend CoroutineScope.() -> T): T = runBlocking { block() }