diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-29 12:15:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-29 12:15:03 -0700 |
commit | 4f10b93a6a910a2457ce5f2aa76ba13047136cca (patch) | |
tree | 7139461275398bd907bfa2788138f0ba95b7f839 | |
parent | cdd6fd09673faa6ed72d1b7f52333c12100df049 (diff) | |
download | mu-4f10b93a6a910a2457ce5f2aa76ba13047136cca.tar.gz |
2314 - final tweaks to trace
I checked these commands: $ mu x.mu $ grep "===" .traces/interactive $ grep "===\|---" .traces/interactive
-rw-r--r-- | 011load.cc | 2 | ||||
-rw-r--r-- | 013literal_string.cc | 3 | ||||
-rw-r--r-- | 020run.cc | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/011load.cc b/011load.cc index db97f3b0..93d30c22 100644 --- a/011load.cc +++ b/011load.cc @@ -47,7 +47,7 @@ long long int slurp_recipe(istream& in) { if (Recipe_ordinal.find(recipe_name) == Recipe_ordinal.end()) { Recipe_ordinal[recipe_name] = Next_recipe_ordinal++; } - trace(9991, "load") << "--- defining " << recipe_name << end(); + trace(9991, "parse") << "--- defining " << recipe_name << end(); if (Recipe.find(Recipe_ordinal[recipe_name]) != Recipe.end()) { trace(9991, "parse") << "already exists" << end(); if (warn_on_redefine(recipe_name)) diff --git a/013literal_string.cc b/013literal_string.cc index 032eb438..785aa822 100644 --- a/013literal_string.cc +++ b/013literal_string.cc @@ -169,11 +169,12 @@ abc \\\[def] recipe main [ 1:address:array:character <- copy [abc] # comment ] ++parse: --- defining main +parse: instruction: copy +parse: ingredient: {"abc": "literal-string"} +parse: product: {"1": <"address" : <"array" : <"character" : <>>>>} # no other ingredients -$parse: 3 +$parse: 4 :(scenario string_literal_escapes_newlines_in_trace) recipe main [ diff --git a/020run.cc b/020run.cc index b05836a4..4d1fb396 100644 --- a/020run.cc +++ b/020run.cc @@ -164,6 +164,7 @@ if (!Run_tests) { setup(); //? Trace_file = "interactive"; //? START_TRACING_UNTIL_END_OF_SCOPE; + trace(9990, "run") << "=== Starting to run" << end(); run_main(argc, argv); teardown(); } |