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/023boolean.cc.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'html/023boolean.cc.html') diff --git a/html/023boolean.cc.html b/html/023boolean.cc.html index 06f948c3..3ee18571 100644 --- a/html/023boolean.cc.html +++ b/html/023boolean.cc.html @@ -69,16 +69,16 @@ if ('onhashchange' in window) { 8 case AND: { 9 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 10 if (!is_mu_scalar(inst.ingredients.at(i))) { - 11 raise << maybe(get(Recipe, r).name) << "'and' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); + 11 raise << maybe(get(Recipe, r).name) << "'and' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); 12 goto finish_checking_instruction; 13 } 14 } 15 if (SIZE(inst.products) > 1) { - 16 raise << maybe(get(Recipe, r).name) << "'and' yields exactly one product in '" << inst.original_string << "'\n" << end(); + 16 raise << maybe(get(Recipe, r).name) << "'and' yields exactly one product in '" << inst.original_string << "'\n" << end(); 17 break; 18 } 19 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_boolean(inst.products.at(0))) { - 20 raise << maybe(get(Recipe, r).name) << "'and' should yield a boolean, but got '" << inst.products.at(0).original_string << "'\n" << end(); + 20 raise << maybe(get(Recipe, r).name) << "'and' should yield a boolean, but got '" << inst.products.at(0).original_string << "'\n" << end(); 21 break; 22 } 23 break; @@ -127,16 +127,16 @@ if ('onhashchange' in window) { 66 case OR: { 67 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 68 if (!is_mu_scalar(inst.ingredients.at(i))) { - 69 raise << maybe(get(Recipe, r).name) << "'and' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); + 69 raise << maybe(get(Recipe, r).name) << "'and' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); 70 goto finish_checking_instruction; 71 } 72 } 73 if (SIZE(inst.products) > 1) { - 74 raise << maybe(get(Recipe, r).name) << "'or' yields exactly one product in '" << inst.original_string << "'\n" << end(); + 74 raise << maybe(get(Recipe, r).name) << "'or' yields exactly one product in '" << inst.original_string << "'\n" << end(); 75 break; 76 } 77 if (!inst.products.empty() && !is_dummy(inst.products.at(0)) && !is_mu_boolean(inst.products.at(0))) { - 78 raise << maybe(get(Recipe, r).name) << "'or' should yield a boolean, but got '" << inst.products.at(0).original_string << "'\n" << end(); + 78 raise << maybe(get(Recipe, r).name) << "'or' should yield a boolean, but got '" << inst.products.at(0).original_string << "'\n" << end(); 79 break; 80 } 81 break; @@ -184,19 +184,19 @@ if ('onhashchange' in window) { 123 :(before "End Primitive Recipe Checks") 124 case NOT: { 125 if (SIZE(inst.products) != SIZE(inst.ingredients)) { -126 raise << "ingredients and products should match in '" << inst.original_string << "'\n" << end(); +126 raise << "ingredients and products should match in '" << inst.original_string << "'\n" << end(); 127 break; 128 } 129 for (int i = 0; i < SIZE(inst.ingredients); ++i) { 130 if (!is_mu_scalar(inst.ingredients.at(i))) { -131 raise << maybe(get(Recipe, r).name) << "'not' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); +131 raise << maybe(get(Recipe, r).name) << "'not' requires boolean ingredients, but got '" << inst.ingredients.at(i).original_string << "'\n" << end(); 132 goto finish_checking_instruction; 133 } 134 } 135 for (int i = 0; i < SIZE(inst.products); ++i) { 136 if (is_dummy(inst.products.at(i))) continue; 137 if (!is_mu_boolean(inst.products.at(i))) { -138 raise << maybe(get(Recipe, r).name) << "'not' should yield a boolean, but got '" << inst.products.at(i).original_string << "'\n" << end(); +138 raise << maybe(get(Recipe, r).name) << "'not' should yield a boolean, but got '" << inst.products.at(i).original_string << "'\n" << end(); 139 goto finish_checking_instruction; 140 } 141 } -- cgit 1.4.1-2-gfad0