From f1ae4b2d236463921838093cf1fc8c3ab9711101 Mon Sep 17 00:00:00 2001 From: sergeych Date: Thu, 10 Jul 2025 12:47:00 +0300 Subject: [PATCH] fixed CLI for new compiler interface --- lyng/src/commonMain/kotlin/Common.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lyng/src/commonMain/kotlin/Common.kt b/lyng/src/commonMain/kotlin/Common.kt index f8e131d..888f1c2 100644 --- a/lyng/src/commonMain/kotlin/Common.kt +++ b/lyng/src/commonMain/kotlin/Common.kt @@ -144,7 +144,7 @@ suspend fun executeFile(fileName: String) { text = text.substring(pos + 1) } processErrors { - Compiler.compile(Source(fileName, text)).execute(baseScope) + baseScope.eval(Source(fileName, text)) } }