From fd7d8138a4ff5515f9b79c584a98d5c26d8ddb8a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 05:48:01 -0800 Subject: 3750 --- html/029tools.cc.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'html/029tools.cc.html') diff --git a/html/029tools.cc.html b/html/029tools.cc.html index 11cbd8ce..0d7f7cf1 100644 --- a/html/029tools.cc.html +++ b/html/029tools.cc.html @@ -65,9 +65,9 @@ if ('onhashchange' in window) { 2 3 :(scenario trace) 4 def main [ - 5 trace 1, [foo], [this is a trace in Mu] + 5 trace 1, [foo], [this is a trace in Mu] 6 ] - 7 +foo: this is a trace in Mu + 7 +foo: this is a trace in Mu 8 9 :(before "End Primitive Recipe Declarations") 10 TRACE, @@ -76,15 +76,15 @@ if ('onhashchange' in window) { 13 :(before "End Primitive Recipe Checks") 14 case TRACE: { 15 if (SIZE(inst.ingredients) < 3) { - 16 raise << maybe(get(Recipe, r).name) << "'trace' takes three or more ingredients rather than '" << inst.original_string << "'\n" << end(); + 16 raise << maybe(get(Recipe, r).name) << "'trace' takes three or more ingredients rather than '" << inst.original_string << "'\n" << end(); 17 break; 18 } 19 if (!is_mu_number(inst.ingredients.at(0))) { - 20 raise << maybe(get(Recipe, r).name) << "first ingredient of 'trace' should be a number (depth), but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); + 20 raise << maybe(get(Recipe, r).name) << "first ingredient of 'trace' should be a number (depth), but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); 21 break; 22 } 23 if (!is_literal_text(inst.ingredients.at(1))) { - 24 raise << maybe(get(Recipe, r).name) << "second ingredient of 'trace' should be a literal string (label), but got '" << inst.ingredients.at(1).original_string << "'\n" << end(); + 24 raise << maybe(get(Recipe, r).name) << "second ingredient of 'trace' should be a literal string (label), but got '" << inst.ingredients.at(1).original_string << "'\n" << end(); 25 break; 26 } 27 break; @@ -98,7 +98,7 @@ if ('onhashchange' in window) { 35 if (i > 2) out << ' '; 36 out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); 37 } - 38 trace(depth, label) << out.str() << end(); + 38 trace(depth, label) << out.str() << end(); 39 break; 40 } 41 @@ -119,7 +119,7 @@ if ('onhashchange' in window) { 56 if (i) out << ' '; 57 out << inspect(current_instruction().ingredients.at(i), ingredients.at(i)); 58 } - 59 trace(2, "app") << out.str() << end(); + 59 trace(2, "app") << out.str() << end(); 60 break; 61 } 62 @@ -210,10 +210,10 @@ if ('onhashchange' in window) { 147 :(before "End Primitive Recipe Implementations") 148 case _DUMP_TRACE: { 149 if (ingredients.empty()) { -150 DUMP(""); +150 DUMP(""); 151 } 152 else { -153 DUMP(current_instruction().ingredients.at(0).name); +153 DUMP(current_instruction().ingredients.at(0).name); 154 } 155 break; 156 } @@ -244,7 +244,7 @@ if ('onhashchange' in window) { 181 case _SAVE_TRACE: { 182 if (Save_trace) { 183 ofstream fout("last_trace"); -184 fout << Trace_stream->readable_contents(""); +184 fout << Trace_stream->readable_contents(""); 185 fout.close(); 186 } 187 break; @@ -264,7 +264,7 @@ if ('onhashchange' in window) { 201 case _PRINT: { 202 for (int i = 0; i < SIZE(ingredients); ++i) { 203 if (is_literal(current_instruction().ingredients.at(i))) { -204 trace(9998, "run") << "$print: " << current_instruction().ingredients.at(i).name << end(); +204 trace(9998, "run") << "$print: " << current_instruction().ingredients.at(i).name << end(); 205 if (!has_property(current_instruction().ingredients.at(i), "newline")) { 206 cout << current_instruction().ingredients.at(i).name; 207 } @@ -277,7 +277,7 @@ if ('onhashchange' in window) { 214 // End $print Special-cases 215 else { 216 for (int j = 0; j < SIZE(ingredients.at(i)); ++j) { -217 trace(9998, "run") << "$print: " << ingredients.at(i).at(j) << end(); +217 trace(9998, "run") << "$print: " << ingredients.at(i).at(j) << end(); 218 if (j > 0) cout << " "; 219 cout << no_scientific(ingredients.at(i).at(j)); 220 } @@ -308,11 +308,11 @@ if ('onhashchange' in window) { 245 :(before "End Primitive Recipe Checks") 246 case _SYSTEM: { 247 if (SIZE(inst.ingredients) != 1) { -248 raise << maybe(get(Recipe, r).name) << "'$system' requires exactly one ingredient, but got '" << to_string(inst) << "'\n" << end(); +248 raise << maybe(get(Recipe, r).name) << "'$system' requires exactly one ingredient, but got '" << to_string(inst) << "'\n" << end(); 249 break; 250 } 251 if (!is_literal_text(inst.ingredients.at(0))) { -252 raise << maybe(get(Recipe, r).name) << "ingredient to '$system' must be a literal text, but got '" << to_string(inst) << "'\n" << end(); +252 raise << maybe(get(Recipe, r).name) << "ingredient to '$system' must be a literal text, but got '" << to_string(inst) << "'\n" << end(); 253 } 254 break; 255 } -- cgit 1.4.1-2-gfad0