From 5fe060d582d4a82444243a28b18085c971a85628 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 27 Jul 2018 17:07:52 -0700 Subject: 4447 --- html/014literal_string.cc.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'html/014literal_string.cc.html') diff --git a/html/014literal_string.cc.html b/html/014literal_string.cc.html index c5fc1143..3dcbeef5 100644 --- a/html/014literal_string.cc.html +++ b/html/014literal_string.cc.html @@ -71,23 +71,23 @@ if ('onhashchange' in window) { 9 :(scenarios load) 10 :(scenario string_literal) 11 def main [ - 12 1:address:array:character <- copy [abc def] + 12 1:address:array:character <- copy [abc def] 13 ] 14 +parse: ingredient: {"abc def": "literal-string"} 15 16 :(scenario string_literal_with_colons) 17 def main [ - 18 1:address:array:character <- copy [abc:def/ghi] + 18 1:address:array:character <- copy [abc:def/ghi] 19 ] 20 +parse: ingredient: {"abc:def/ghi": "literal-string"} 21 22 :(before "End Mu Types Initialization") 23 put(Type_ordinal, "literal-string", 0); 24 - 25 :(before "End next_word Special-cases") + 25 :(before "End next_word Special-cases") 26 if (in.peek() == '[') { 27 string result = slurp_quoted(in); - 28 skip_whitespace_and_comments_but_not_newline(in); + 28 skip_whitespace_and_comments_but_not_newline(in); 29 return result; 30 } 31 @@ -109,14 +109,14 @@ if ('onhashchange' in window) { 47 char c = in.get(); 48 if (!isspace(c)) { 49 in.putback(c); - 50 return false; + 50 return false; 51 } 52 out << c; 53 if (c == '\n') { - 54 return true; + 54 return true; 55 } 56 } - 57 return false; + 57 return false; 58 } 59 60 // Read a regular string. Regular strings can only contain other regular @@ -135,7 +135,7 @@ if ('onhashchange' in window) { 73 if (brace_depth == 0) break; 74 } 75 if (!has_data(in) && brace_depth > 0) { - 76 raise << "unbalanced '['\n" << end(); + 76 raise << "unbalanced '['\n" << end(); 77 out.clear(); 78 } 79 } @@ -162,7 +162,7 @@ if ('onhashchange' in window) { 100 out << c; 101 if (c == ']') return; 102 } -103 raise << "unbalanced '['\n" << end(); +103 raise << "unbalanced '['\n" << end(); 104 out.clear(); 105 } 106 @@ -231,29 +231,29 @@ if ('onhashchange' in window) { 169 170 :(scenario string_literal_nested) 171 def main [ -172 1:address:array:character <- copy [abc [def]] +172 1:address:array:character <- copy [abc [def]] 173 ] 174 +parse: ingredient: {"abc [def]": "literal-string"} 175 176 :(scenario string_literal_escaped) 177 def main [ -178 1:address:array:character <- copy [abc \[def] +178 1:address:array:character <- copy [abc \[def] 179 ] 180 +parse: ingredient: {"abc [def": "literal-string"} 181 182 :(scenario string_literal_escaped_twice) 183 def main [ -184 1:address:array:character <- copy [ +184 1:address:array:character <- copy [ 185 abc \\[def] 186 ] 187 +parse: ingredient: {"\nabc \[def": "literal-string"} 188 189 :(scenario string_literal_and_comment) 190 def main [ -191 1:address:array:character <- copy [abc] # comment +191 1:address:array:character <- copy [abc] # comment 192 ] 193 +parse: --- defining main -194 +parse: instruction: copy +194 +parse: instruction: copy 195 +parse: number of ingredients: 1 196 +parse: ingredient: {"abc": "literal-string"} 197 +parse: product: {1: ("address" "array" "character")} -- cgit 1.4.1-2-gfad0