about summary refs log tree commit diff stats
path: root/078run_interactive.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-01 00:43:15 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-01 00:43:15 -0700
commit67eeacbff185da5ba4cec507cb22e50cc78057c7 (patch)
treee38ee110181a5bcfc13e8a9da8b043259787c6b4 /078run_interactive.cc
parent87fbfc2d4607ff31d5b0b023f41d8ba439dd5958 (diff)
downloadmu-67eeacbff185da5ba4cec507cb22e50cc78057c7.tar.gz
1519 - repl now running commands
Was missing a newline. More brittleness.
Diffstat (limited to '078run_interactive.cc')
-rw-r--r--078run_interactive.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/078run_interactive.cc b/078run_interactive.cc
index 25ca4dd9..1075c922 100644
--- a/078run_interactive.cc
+++ b/078run_interactive.cc
@@ -17,8 +17,9 @@ case RUN_INTERACTIVE: {
 :(code)
 // manual tests:
 //  just an integer prints value of that location in memory
-//  instruction executes [not yet working]
+//  instruction executes
 //  backspace at start begins new attempt
+//  ctrl-d working [not after first instruction is run]
 void run_interactive(long long int address) {
 //?   tb_shutdown(); //? 1
   long long int size = Memory[address];
@@ -52,7 +53,11 @@ void run_interactive(long long int address) {
 //?   cerr << "AAA 1\n"; //? 1
   Recipe.erase(Recipe_number["interactive"]);
   // call run(string) but without the scheduling
-  load("recipe interactive [\n"+tmp.str()+"]\n");
+//?   cerr << ("recipe interactive [\n"+tmp.str()+"\n]\n"); //? 1
+  load("recipe interactive [\n"+tmp.str()+"\n]\n");
   transform_all();
+//?   cerr << "names: " << Name[Recipe_number["interactive"]].size() << "; "; //? 1
+//?   cerr << "steps: " << Recipe[Recipe_number["interactive"]].steps.size() << "; "; //? 1
+//?   cerr << "interactive transformed_until: " << Recipe[Recipe_number["interactive"]].transformed_until << '\n'; //? 1
   Current_routine->calls.push_front(call(Recipe_number["interactive"]));
 }