From 5fe060d582d4a82444243a28b18085c971a85628 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 27 Jul 2018 17:07:52 -0700 Subject: 4447 --- html/016dilated_reagent.cc.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'html/016dilated_reagent.cc.html') diff --git a/html/016dilated_reagent.cc.html b/html/016dilated_reagent.cc.html index bf41460b..dcd7bb87 100644 --- a/html/016dilated_reagent.cc.html +++ b/html/016dilated_reagent.cc.html @@ -95,7 +95,7 @@ if ('onhashchange' in window) { 31 32 //: First augment next_word to group balanced brackets together. 33 - 34 :(before "End next_word Special-cases") + 34 :(before "End next_word Special-cases") 35 if (in.peek() == '(') 36 return slurp_balanced_bracket(in); 37 // treat curlies mostly like parens, but don't mess up labels @@ -106,7 +106,7 @@ if ('onhashchange' in window) { 42 // A curly is considered a label if it's the last thing on a line. Dilated 43 // reagents should remain all on one line. 44 bool start_of_dilated_reagent(istream& in) { - 45 if (in.peek() != '{') return false; + 45 if (in.peek() != '{') return false; 46 int pos = in.tellg(); 47 in.get(); // slurp '{' 48 skip_whitespace_but_not_newline(in); @@ -126,7 +126,7 @@ if ('onhashchange' in window) { 62 if (c == '(') open_brackets.push_back(c); 63 if (c == ')') { 64 if (open_brackets.empty() || open_brackets.back() != '(') { - 65 raise << "unbalanced ')'\n" << end(); + 65 raise << "unbalanced ')'\n" << end(); 66 continue; 67 } 68 assert(open_brackets.back() == '('); @@ -135,7 +135,7 @@ if ('onhashchange' in window) { 71 if (c == '[') open_brackets.push_back(c); 72 if (c == ']') { 73 if (open_brackets.empty() || open_brackets.back() != '[') { - 74 raise << "unbalanced ']'\n" << end(); + 74 raise << "unbalanced ']'\n" << end(); 75 continue; 76 } 77 open_brackets.pop_back(); @@ -143,7 +143,7 @@ if ('onhashchange' in window) { 79 if (c == '{') open_brackets.push_back(c); 80 if (c == '}') { 81 if (open_brackets.empty() || open_brackets.back() != '{') { - 82 raise << "unbalanced '}'\n" << end(); + 82 raise << "unbalanced '}'\n" << end(); 83 continue; 84 } 85 open_brackets.pop_back(); @@ -151,7 +151,7 @@ if ('onhashchange' in window) { 87 result << c; 88 if (open_brackets.empty()) break; 89 } - 90 skip_whitespace_and_comments_but_not_newline(in); + 90 skip_whitespace_and_comments_but_not_newline(in); 91 return result.str(); 92 } 93 @@ -163,33 +163,33 @@ if ('onhashchange' in window) { 99 in.get(); // skip '{' 100 name = slurp_key(in); 101 if (name.empty()) { -102 raise << "invalid reagent '" << s << "' without a name\n" << end(); +102 raise << "invalid reagent '" << s << "' without a name\n" << end(); 103 return; 104 } 105 if (name == "}") { -106 raise << "invalid empty reagent '" << s << "'\n" << end(); +106 raise << "invalid empty reagent '" << s << "'\n" << end(); 107 return; 108 } 109 { -110 string s = next_word(in); +110 string s = next_word(in); 111 if (s.empty()) { 112 assert(!has_data(in)); -113 raise << "incomplete dilated reagent at end of file (0)\n" << end(); +113 raise << "incomplete dilated reagent at end of file (0)\n" << end(); 114 return; 115 } 116 string_tree* type_names = new string_tree(s); 117 // End Parsing Dilated Reagent Type Property(type_names) -118 type = new_type_tree(type_names); +118 type = new_type_tree(type_names); 119 delete type_names; 120 } 121 while (has_data(in)) { 122 string key = slurp_key(in); 123 if (key.empty()) continue; 124 if (key == "}") continue; -125 string s = next_word(in); +125 string s = next_word(in); 126 if (s.empty()) { 127 assert(!has_data(in)); -128 raise << "incomplete dilated reagent at end of file (1)\n" << end(); +128 raise << "incomplete dilated reagent at end of file (1)\n" << end(); 129 return; 130 } 131 string_tree* value = new string_tree(s); @@ -201,10 +201,10 @@ if ('onhashchange' in window) { 137 138 :(code) 139 string slurp_key(istream& in) { -140 string result = next_word(in); +140 string result = next_word(in); 141 if (result.empty()) { 142 assert(!has_data(in)); -143 raise << "incomplete dilated reagent at end of file (2)\n" << end(); +143 raise << "incomplete dilated reagent at end of file (2)\n" << end(); 144 return result; 145 } 146 while (!result.empty() && *result.rbegin() == ':') -- cgit 1.4.1-2-gfad0