Skip to content

Commit 1c151f4

Browse files
committed
remove dysfunctional repl
1 parent 8917926 commit 1c151f4

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

compiler/src/prog8/CompilerMain.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import prog8.ast.base.AstException
44
import prog8.compiler.CompilationResult
55
import prog8.compiler.compileProgram
66
import prog8.parser.ParsingFailedError
7-
import prog8.repl.Repl
87
import prog8.vm.astvm.AstVm
98
import java.nio.file.FileSystems
109
import java.nio.file.Path
@@ -37,7 +36,6 @@ private fun compileMain(args: Array<String>) {
3736
var optimize = true
3837
var optimizeInlining = true
3938
var launchAstVm = false
40-
var launchRepl = false
4139
var watchMode = false
4240
for (arg in args) {
4341
if(arg=="-emu")
@@ -52,8 +50,6 @@ private fun compileMain(args: Array<String>) {
5250
optimizeInlining = false
5351
else if(arg=="-avm")
5452
launchAstVm = true
55-
else if(arg=="-repl")
56-
launchRepl = true
5753
else if(arg=="-watch")
5854
watchMode = true
5955
else if(!arg.startsWith("-"))
@@ -93,9 +89,6 @@ private fun compileMain(args: Array<String>) {
9389
}
9490
}
9591

96-
} else if(launchRepl) {
97-
val repl = Repl()
98-
repl.loop()
9992
} else {
10093
if(moduleFile.isBlank())
10194
usage()
@@ -142,7 +135,6 @@ private fun usage() {
142135
System.err.println(" [-emu] auto-start the 'x64' C-64 emulator after successful compilation")
143136
System.err.println(" [-emu2] auto-start the 'x64sc' C-64 emulator after successful compilation")
144137
System.err.println(" [-avm] launch the prog8 ast-based virtual machine after compilation")
145-
System.err.println(" [-repl] launch the prog8 REPL (interactive mode)")
146138
System.err.println(" [-watch] continuous compilation mode (watches for file changes)")
147139
System.err.println(" modulefile main module file to compile")
148140
exitProcess(1)

compiler/src/prog8/repl/ReplMain.kt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)