aboutsummaryrefslogtreecommitdiff
path: root/src/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-21 17:05:46 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-21 17:05:46 -0400
commiteed8b0175d358d5990c248fa347354fc8ba25066 (patch)
tree39830d2c7f9e24208ccdbb33c438670ea5c1653e /src/tomo.c
parentab55eee556ecbe6a8bd0a4f4cd92e38b021f6841 (diff)
Deprecate REPL
Diffstat (limited to 'src/tomo.c')
-rw-r--r--src/tomo.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/tomo.c b/src/tomo.c
index 4a8e70d1..c5996077 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -14,7 +14,6 @@
#include "compile.h"
#include "cordhelpers.h"
#include "parse.h"
-#include "repl.h"
#include "stdlib/lists.h"
#include "stdlib/bools.h"
#include "stdlib/bytes.h"
@@ -60,7 +59,6 @@ static OptionalBool_t verbose = false,
stop_at_obj_compilation = false,
compile_exe = false,
should_install = false,
- run_repl = false,
clean_build = false,
source_mapping = true;
@@ -177,8 +175,6 @@ int main(int argc, char *argv[])
{"L", false, List$info(&Path$info), &libraries},
{"show-codegen", false, &Text$info, &show_codegen},
{"C", false, &Text$info, &show_codegen},
- {"repl", false, &Bool$info, &run_repl},
- {"R", false, &Bool$info, &run_repl},
{"install", false, &Bool$info, &should_install},
{"I", false, &Bool$info, &should_install},
{"c-compiler", false, &Text$info, &cc},
@@ -230,10 +226,9 @@ int main(int argc, char *argv[])
wait_for_child_success(child);
}
- // TODO: REPL
- if (run_repl) {
- repl();
- return 0;
+ if (files.length == 0) {
+ fprint(stderr, "No files provided!\n\n", usage);
+ return 1;
}
if (files.length <= 0 && (uninstall.length > 0 || libraries.length > 0)) {