aboutsummaryrefslogtreecommitdiff
path: root/frontend/main.icl
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/main.icl')
-rw-r--r--frontend/main.icl9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/main.icl b/frontend/main.icl
index 06a4e99..7fc2459 100644
--- a/frontend/main.icl
+++ b/frontend/main.icl
@@ -21,6 +21,14 @@ Start world
CommandLoop proj ms=:{ms_io}
+ # answer = "c t5\n"
+ (command, argument) = SplitAtLayoutChar (dropWhile isSpace (fromString answer))
+ | command == []
+ = CommandLoop proj { ms & ms_io = ms_io}
+ # (ready, proj, ms) = DoCommand command argument proj { ms & ms_io = ms_io}
+ = ms
+/*
+CommandLoop proj ms=:{ms_io}
# (answer, ms_io) = freadline (ms_io <<< "> ")
(command, argument) = SplitAtLayoutChar (dropWhile isSpace (fromString answer))
| command == []
@@ -29,6 +37,7 @@ CommandLoop proj ms=:{ms_io}
| ready
= ms
= CommandLoop proj ms
+*/
:: MainStateDefs funs funtypes types conses classes instances members selectors =
{ msd_funs :: !funs