From 805d58c6aeeeba3e4989c0eed6781b3861e8fae0 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 25 Jan 2018 22:39:31 -0800 Subject: 4199 --- html/024jump.cc.html | 55 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 28 deletions(-) (limited to 'html/024jump.cc.html') diff --git a/html/024jump.cc.html b/html/024jump.cc.html index da98e2b0..a5e962e9 100644 --- a/html/024jump.cc.html +++ b/html/024jump.cc.html @@ -15,19 +15,18 @@ body { font-size: 12pt; font-family: monospace; color: #aaaaaa; background-color a { color:#eeeeee; text-decoration: none; } a:hover { text-decoration: underline; } * { font-size: 12pt; font-size: 1em; } -.Conceal { color: #4e4e4e; } -.traceContains { color: #008000; } .traceAbsent { color: #c00000; } -.LineNr { color: #444444; } -.cSpecial { color: #008000; } .Identifier { color: #c0a020; } +.LineNr { color: #444444; } .Constant { color: #00a0a0; } +.muRecipe { color: #ff8700; } +.Delimiter { color: #800080; } +.Special { color: #c00000; } +.cSpecial { color: #008000; } .Normal { color: #aaaaaa; background-color: #080808; padding-bottom: 1px; } .Comment { color: #9090ff; } .Comment a { color:#0000ee; text-decoration:underline; } -.Delimiter { color: #800080; } -.Special { color: #c00000; } -.muRecipe { color: #ff8700; } +.traceContains { color: #008000; } --> @@ -80,12 +79,12 @@ if ('onhashchange' in window) { 16 :(before "End Primitive Recipe Checks") 17 case JUMP: { 18 if (SIZE(inst.ingredients) != 1) { - 19 ¦ raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' should get exactly one ingredient\n" << end(); - 20 ¦ break; + 19 raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' should get exactly one ingredient\n" << end(); + 20 break; 21 } 22 if (!is_literal(inst.ingredients.at(0))) { - 23 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of '" << to_original_string(inst) << "' should be a label or offset, but '" << inst.ingredients.at(0).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(0).type) << "'\n" << end(); - 24 ¦ break; + 23 raise << maybe(get(Recipe, r).name) << "first ingredient of '" << to_original_string(inst) << "' should be a label or offset, but '" << inst.ingredients.at(0).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(0).type) << "'\n" << end(); + 24 break; 25 } 26 break; 27 } @@ -108,7 +107,7 @@ if ('onhashchange' in window) { 44 def main [ 45 jump 1:offset # 0 -+ 46 jump 3:offset # | +-+ 1 - 47 ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦# \/ /\ | + 47 # \/ /\ | 48 jump -2:offset # 2 +-->+ | 49 ] # \/ 3 50 +run: jump {1: "offset"} @@ -122,16 +121,16 @@ if ('onhashchange' in window) { 58 :(before "End Primitive Recipe Checks") 59 case JUMP_IF: { 60 if (SIZE(inst.ingredients) != 2) { - 61 ¦ raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' should get exactly two ingredients\n" << end(); - 62 ¦ break; + 61 raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' should get exactly two ingredients\n" << end(); + 62 break; 63 } 64 if (!is_mu_scalar(inst.ingredients.at(0))) { - 65 ¦ raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a boolean for its first ingredient, but '" << inst.ingredients.at(0).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(0).type) << "'\n" << end(); - 66 ¦ break; + 65 raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a boolean for its first ingredient, but '" << inst.ingredients.at(0).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(0).type) << "'\n" << end(); + 66 break; 67 } 68 if (!is_literal(inst.ingredients.at(1))) { - 69 ¦ raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a label or offset for its second ingredient, but '" << inst.ingredients.at(1).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(1).type) << "'\n" << end(); - 70 ¦ break; + 69 raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a label or offset for its second ingredient, but '" << inst.ingredients.at(1).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(1).type) << "'\n" << end(); + 70 break; 71 } 72 // End JUMP_IF Checks 73 break; @@ -140,8 +139,8 @@ if ('onhashchange' in window) { 76 case JUMP_IF: { 77 assert(current_instruction().ingredients.at(1).initialized); 78 if (!ingredients.at(0).at(0)) { - 79 ¦ trace(9998, "run") << "jump-if fell through" << end(); - 80 ¦ break; + 79 trace(9998, "run") << "jump-if fell through" << end(); + 80 break; 81 } 82 current_step_index() += ingredients.at(1).at(0)+1; 83 trace(9998, "run") << "jumping to instruction " << current_step_index() << end(); @@ -178,16 +177,16 @@ if ('onhashchange' in window) { 114 :(before "End Primitive Recipe Checks") 115 case JUMP_UNLESS: { 116 if (SIZE(inst.ingredients) != 2) { -117 ¦ raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' should get exactly two ingredients\n" << end(); -118 ¦ break; +117 raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' should get exactly two ingredients\n" << end(); +118 break; 119 } 120 if (!is_mu_scalar(inst.ingredients.at(0))) { -121 ¦ raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a boolean for its first ingredient, but '" << inst.ingredients.at(0).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(0).type) << "'\n" << end(); -122 ¦ break; +121 raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a boolean for its first ingredient, but '" << inst.ingredients.at(0).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(0).type) << "'\n" << end(); +122 break; 123 } 124 if (!is_literal(inst.ingredients.at(1))) { -125 ¦ raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a label or offset for its second ingredient, but '" << inst.ingredients.at(1).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(1).type) << "'\n" << end(); -126 ¦ break; +125 raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires a label or offset for its second ingredient, but '" << inst.ingredients.at(1).name << "' has type '" << names_to_string_without_quotes(inst.ingredients.at(1).type) << "'\n" << end(); +126 break; 127 } 128 // End JUMP_UNLESS Checks 129 break; @@ -196,8 +195,8 @@ if ('onhashchange' in window) { 132 case JUMP_UNLESS: { 133 assert(current_instruction().ingredients.at(1).initialized); 134 if (ingredients.at(0).at(0)) { -135 ¦ trace(9998, "run") << "jump-unless fell through" << end(); -136 ¦ break; +135 trace(9998, "run") << "jump-unless fell through" << end(); +136 break; 137 } 138 current_step_index() += ingredients.at(1).at(0)+1; 139 trace(9998, "run") << "jumping to instruction " << current_step_index() << end(); -- cgit 1.4.1-2-gfad0