From 104e521c04d1a0cad9c68fb11e250e12ad8917ef Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 17 Oct 2018 07:08:47 -0700 Subject: 4709 --- html/029tools.cc.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'html/029tools.cc.html') diff --git a/html/029tools.cc.html b/html/029tools.cc.html index 3fa5e006..ea3c2618 100644 --- a/html/029tools.cc.html +++ b/html/029tools.cc.html @@ -66,9 +66,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, @@ -77,15 +77,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 '" << to_original_string(inst) << "'\n" << end(); + 16 raise << maybe(get(Recipe, r).name) << "'trace' takes three or more ingredients rather than '" << to_original_string(inst) << "'\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; @@ -99,7 +99,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 @@ -120,7 +120,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 @@ -211,10 +211,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 } @@ -261,7 +261,7 @@ if ('onhashchange' in window) { 197 case _PRINT: { 198 for (int i = 0; i < SIZE(ingredients); ++i) { 199 if (is_literal(current_instruction().ingredients.at(i))) { -200 trace(9998, "run") << "$print: " << current_instruction().ingredients.at(i).name << end(); +200 trace(9998, "run") << "$print: " << current_instruction().ingredients.at(i).name << end(); 201 if (!has_property(current_instruction().ingredients.at(i), "newline")) { 202 cout << current_instruction().ingredients.at(i).name; 203 } @@ -274,7 +274,7 @@ if ('onhashchange' in window) { 210 // End $print Special-cases 211 else { 212 for (int j = 0; j < SIZE(ingredients.at(i)); ++j) { -213 trace(9998, "run") << "$print: " << ingredients.at(i).at(j) << end(); +213 trace(9998, "run") << "$print: " << ingredients.at(i).at(j) << end(); 214 if (j > 0) cout << " "; 215 cout << no_scientific(ingredients.at(i).at(j)); 216 } @@ -305,11 +305,11 @@ if ('onhashchange' in window) { 241 :(before "End Primitive Recipe Checks") 242 case _SYSTEM: { 243 if (SIZE(inst.ingredients) != 1) { -244 raise << maybe(get(Recipe, r).name) << "'$system' requires exactly one ingredient, but got '" << to_string(inst) << "'\n" << end(); +244 raise << maybe(get(Recipe, r).name) << "'$system' requires exactly one ingredient, but got '" << to_string(inst) << "'\n" << end(); 245 break; 246 } 247 if (!is_literal_text(inst.ingredients.at(0))) { -248 raise << maybe(get(Recipe, r).name) << "ingredient to '$system' must be a literal text, but got '" << to_string(inst) << "'\n" << end(); +248 raise << maybe(get(Recipe, r).name) << "ingredient to '$system' must be a literal text, but got '" << to_string(inst) << "'\n" << end(); 249 } 250 break; 251 } -- cgit 1.4.1-2-gfad0