Skip to content

Commit

Permalink
remove dysfunctional repl
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Aug 10, 2019
1 parent 8917926 commit 1c151f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
8 changes: 0 additions & 8 deletions compiler/src/prog8/CompilerMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import prog8.ast.base.AstException
import prog8.compiler.CompilationResult
import prog8.compiler.compileProgram
import prog8.parser.ParsingFailedError
import prog8.repl.Repl
import prog8.vm.astvm.AstVm
import java.nio.file.FileSystems
import java.nio.file.Path
Expand Down Expand Up @@ -37,7 +36,6 @@ private fun compileMain(args: Array<String>) {
var optimize = true
var optimizeInlining = true
var launchAstVm = false
var launchRepl = false
var watchMode = false
for (arg in args) {
if(arg=="-emu")
Expand All @@ -52,8 +50,6 @@ private fun compileMain(args: Array<String>) {
optimizeInlining = false
else if(arg=="-avm")
launchAstVm = true
else if(arg=="-repl")
launchRepl = true
else if(arg=="-watch")
watchMode = true
else if(!arg.startsWith("-"))
Expand Down Expand Up @@ -93,9 +89,6 @@ private fun compileMain(args: Array<String>) {
}
}

} else if(launchRepl) {
val repl = Repl()
repl.loop()
} else {
if(moduleFile.isBlank())
usage()
Expand Down Expand Up @@ -142,7 +135,6 @@ private fun usage() {
System.err.println(" [-emu] auto-start the 'x64' C-64 emulator after successful compilation")
System.err.println(" [-emu2] auto-start the 'x64sc' C-64 emulator after successful compilation")
System.err.println(" [-avm] launch the prog8 ast-based virtual machine after compilation")
System.err.println(" [-repl] launch the prog8 REPL (interactive mode)")
System.err.println(" [-watch] continuous compilation mode (watches for file changes)")
System.err.println(" modulefile main module file to compile")
exitProcess(1)
Expand Down
36 changes: 0 additions & 36 deletions compiler/src/prog8/repl/ReplMain.kt

This file was deleted.

0 comments on commit 1c151f4

Please sign in to comment.