From 2c678a4e1d7f97c862342ee19cf2d6ee6e901d85 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 29 May 2017 14:21:32 -0700 Subject: 3897 - various updates to documentation --- html/011load.cc.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'html/011load.cc.html') diff --git a/html/011load.cc.html b/html/011load.cc.html index b2bf3015..37a77827 100644 --- a/html/011load.cc.html +++ b/html/011load.cc.html @@ -86,7 +86,7 @@ if ('onhashchange' in window) { 22 vector<recipe_ordinal> load(istream& in) { 23 in >> std::noskipws; 24 vector<recipe_ordinal> result; - 25 while (has_data(in)) { + 25 while (has_data(in)) { 26 ¦ skip_whitespace_and_comments(in); 27 ¦ if (!has_data(in)) break; 28 ¦ string command = next_word(in); @@ -129,7 +129,7 @@ if ('onhashchange' in window) { 65 ¦ raise << "empty result.name\n" << end(); 66 trace(9991, "parse") << "--- defining " << result.name << end(); 67 if (!contains_key(Recipe_ordinal, result.name)) - 68 ¦ put(Recipe_ordinal, result.name, Next_recipe_ordinal++); + 68 ¦ put(Recipe_ordinal, result.name, Next_recipe_ordinal++); 69 if (Recipe.find(get(Recipe_ordinal, result.name)) != Recipe.end()) { 70 ¦ trace(9991, "parse") << "already exists" << end(); 71 ¦ if (should_check_for_redefine(result.name)) @@ -138,7 +138,7 @@ if ('onhashchange' in window) { 74 } 75 slurp_body(in, result); 76 // End Recipe Body(result) - 77 put(Recipe, get(Recipe_ordinal, result.name), result); + 77 put(Recipe, get(Recipe_ordinal, result.name), result); 78 return get(Recipe_ordinal, result.name); 79 } 80 @@ -166,7 +166,7 @@ if ('onhashchange' in window) { 102 } 103 104 vector<string> words; -105 while (has_data(in) && in.peek() != '\n') { +105 while (has_data(in) && in.peek() != '\n') { 106 ¦ skip_whitespace_but_not_newline(in); 107 ¦ if (!has_data(in)) { 108 ¦ ¦ raise << "incomplete recipe at end of file (1)\n" << end(); @@ -182,10 +182,10 @@ if ('onhashchange' in window) { 118 ¦ skip_whitespace_but_not_newline(in); 119 } 120 skip_whitespace_and_comments(in); -121 if (SIZE(words) == 1 && words.at(0) == "]") +121 if (SIZE(words) == 1 && words.at(0) == "]") 122 ¦ return false; // end of recipe 123 -124 if (SIZE(words) == 1 && is_label_word(words.at(0))) { +124 if (SIZE(words) == 1 && is_label_word(words.at(0))) { 125 ¦ curr->is_label = true; 126 ¦ curr->label = words.at(0); 127 ¦ trace(9993, "parse") << "label: " << curr->label << end(); @@ -214,7 +214,7 @@ if ('onhashchange' in window) { 150 ¦ curr->ingredients.push_back(reagent(*p)); 151 152 trace(9993, "parse") << "instruction: " << curr->name << end(); -153 trace(9993, "parse") << " number of ingredients: " << SIZE(curr->ingredients) << end(); +153 trace(9993, "parse") << " number of ingredients: " << SIZE(curr->ingredients) << end(); 154 for (vector<reagent>::iterator p = curr->ingredients.begin(); p != curr->ingredients.end(); ++p) 155 ¦ trace(9993, "parse") << " ingredient: " << to_string(*p) << end(); 156 for (vector<reagent>::iterator p = curr->products.begin(); p != curr->products.end(); ++p) @@ -256,7 +256,7 @@ if ('onhashchange' in window) { 192 :(code) 193 void slurp_word(istream& in, ostream& out) { 194 char c; -195 if (has_data(in) && Terminators.find(in.peek()) != string::npos) { +195 if (has_data(in) && Terminators.find(in.peek()) != string::npos) { 196 ¦ in >> c; 197 ¦ out << c; 198 ¦ return; @@ -293,9 +293,9 @@ if ('onhashchange' in window) { 229 } 230 231 void skip_comment(istream& in) { -232 if (has_data(in) && in.peek() == '#') { +232 if (has_data(in) && in.peek() == '#') { 233 ¦ in.get(); -234 ¦ while (has_data(in) && in.peek() != '\n') in.get(); +234 ¦ while (has_data(in) && in.peek() != '\n') in.get(); 235 } 236 } 237 -- cgit 1.4.1-2-gfad0