diff options
Diffstat (limited to 'html/014literal_string.cc.html')
-rw-r--r-- | html/014literal_string.cc.html | 28 |
1 files changed, 14 insertions, 14 deletions
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) { <span id="L9" class="LineNr"> 9 </span><span class="Delimiter">:(scenarios load)</span> <span id="L10" class="LineNr"> 10 </span><span class="Delimiter">:(scenario string_literal)</span> <span id="L11" class="LineNr"> 11 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [ -<span id="L12" class="LineNr"> 12 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L80'>address</a>:array:character<span class="Special"> <- </span>copy [abc def] +<span id="L12" class="LineNr"> 12 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L101'>address</a>:array:character<span class="Special"> <- </span>copy [abc def] <span id="L13" class="LineNr"> 13 </span>] <span id="L14" class="LineNr"> 14 </span><span class="traceContains">+parse: ingredient: {"abc def": "literal-string"}</span> <span id="L15" class="LineNr"> 15 </span> <span id="L16" class="LineNr"> 16 </span><span class="Delimiter">:(scenario string_literal_with_colons)</span> <span id="L17" class="LineNr"> 17 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [ -<span id="L18" class="LineNr"> 18 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L80'>address</a>:array:character<span class="Special"> <- </span>copy [abc:def/ghi] +<span id="L18" class="LineNr"> 18 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L101'>address</a>:array:character<span class="Special"> <- </span>copy [abc:def/ghi] <span id="L19" class="LineNr"> 19 </span>] <span id="L20" class="LineNr"> 20 </span><span class="traceContains">+parse: ingredient: {"abc:def/ghi": "literal-string"}</span> <span id="L21" class="LineNr"> 21 </span> <span id="L22" class="LineNr"> 22 </span><span class="Delimiter">:(before "End Mu Types Initialization")</span> <span id="L23" class="LineNr"> 23 </span><a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Type_ordinal<span class="Delimiter">,</span> <span class="Constant">"literal-string"</span><span class="Delimiter">,</span> <span class="Constant">0</span><span class="Delimiter">);</span> <span id="L24" class="LineNr"> 24 </span> -<span id="L25" class="LineNr"> 25 </span><span class="Delimiter">:(before "End <a href='011load.cc.html#L167'>next_word</a> Special-cases")</span> +<span id="L25" class="LineNr"> 25 </span><span class="Delimiter">:(before "End <a href='011load.cc.html#L169'>next_word</a> Special-cases")</span> <span id="L26" class="LineNr"> 26 </span><span class="Normal">if</span> <span class="Delimiter">(</span>in<span class="Delimiter">.</span>peek<span class="Delimiter">()</span> == <span class="Constant">'['</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L27" class="LineNr"> 27 </span> string result = <a href='014literal_string.cc.html#L33'>slurp_quoted</a><span class="Delimiter">(</span>in<span class="Delimiter">);</span> -<span id="L28" class="LineNr"> 28 </span> <a href='011load.cc.html#L220'>skip_whitespace_and_comments_but_not_newline</a><span class="Delimiter">(</span>in<span class="Delimiter">);</span> +<span id="L28" class="LineNr"> 28 </span> <a href='011load.cc.html#L222'>skip_whitespace_and_comments_but_not_newline</a><span class="Delimiter">(</span>in<span class="Delimiter">);</span> <span id="L29" class="LineNr"> 29 </span> <span class="Identifier">return</span> result<span class="Delimiter">;</span> <span id="L30" class="LineNr"> 30 </span><span class="Delimiter">}</span> <span id="L31" class="LineNr"> 31 </span> @@ -109,14 +109,14 @@ if ('onhashchange' in window) { <span id="L47" class="LineNr"> 47 </span> <span class="Normal">char</span> c = in<span class="Delimiter">.</span>get<span class="Delimiter">();</span> <span id="L48" class="LineNr"> 48 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>!isspace<span class="Delimiter">(</span>c<span class="Delimiter">))</span> <span class="Delimiter">{</span> <span id="L49" class="LineNr"> 49 </span> in<span class="Delimiter">.</span>putback<span class="Delimiter">(</span>c<span class="Delimiter">);</span> -<span id="L50" class="LineNr"> 50 </span> <span class="Identifier">return</span> <span class="Constant">false</span><span class="Delimiter">;</span> +<span id="L50" class="LineNr"> 50 </span> <span class="Identifier">return</span><span class="Constant"> false</span><span class="Delimiter">;</span> <span id="L51" class="LineNr"> 51 </span> <span class="Delimiter">}</span> <span id="L52" class="LineNr"> 52 </span> out << c<span class="Delimiter">;</span> <span id="L53" class="LineNr"> 53 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>c == <span class="cSpecial">'\n'</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L54" class="LineNr"> 54 </span> <span class="Identifier">return</span> <span class="Constant">true</span><span class="Delimiter">;</span> +<span id="L54" class="LineNr"> 54 </span> <span class="Identifier">return</span><span class="Constant"> true</span><span class="Delimiter">;</span> <span id="L55" class="LineNr"> 55 </span> <span class="Delimiter">}</span> <span id="L56" class="LineNr"> 56 </span> <span class="Delimiter">}</span> -<span id="L57" class="LineNr"> 57 </span> <span class="Identifier">return</span> <span class="Constant">false</span><span class="Delimiter">;</span> +<span id="L57" class="LineNr"> 57 </span> <span class="Identifier">return</span><span class="Constant"> false</span><span class="Delimiter">;</span> <span id="L58" class="LineNr"> 58 </span><span class="Delimiter">}</span> <span id="L59" class="LineNr"> 59 </span> <span id="L60" class="LineNr"> 60 </span><span class="Comment">// Read a regular string. Regular strings can only contain other regular</span> @@ -135,7 +135,7 @@ if ('onhashchange' in window) { <span id="L73" class="LineNr"> 73 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>brace_depth == <span class="Constant">0</span><span class="Delimiter">)</span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L74" class="LineNr"> 74 </span> <span class="Delimiter">}</span> <span id="L75" class="LineNr"> 75 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>!has_data<span class="Delimiter">(</span>in<span class="Delimiter">)</span> && brace_depth > <span class="Constant">0</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L76" class="LineNr"> 76 </span> <a href='003trace.cc.html#L174'>raise</a> << <span class="Constant">"unbalanced '['</span><span class="cSpecial">\n</span><span class="Constant">"</span> << <a href='003trace.cc.html#L203'>end</a><span class="Delimiter">();</span> +<span id="L76" class="LineNr"> 76 </span> <a href='003trace.cc.html#L197'>raise</a> << <span class="Constant">"unbalanced '['</span><span class="cSpecial">\n</span><span class="Constant">"</span> << <a href='003trace.cc.html#L226'>end</a><span class="Delimiter">();</span> <span id="L77" class="LineNr"> 77 </span> out<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span> <span id="L78" class="LineNr"> 78 </span> <span class="Delimiter">}</span> <span id="L79" class="LineNr"> 79 </span><span class="Delimiter">}</span> @@ -162,7 +162,7 @@ if ('onhashchange' in window) { <span id="L100" class="LineNr">100 </span> out << c<span class="Delimiter">;</span> <span id="L101" class="LineNr">101 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>c == <span class="Constant">']'</span><span class="Delimiter">)</span> <span class="Identifier">return</span><span class="Delimiter">;</span> <span id="L102" class="LineNr">102 </span> <span class="Delimiter">}</span> -<span id="L103" class="LineNr">103 </span> <a href='003trace.cc.html#L174'>raise</a> << <span class="Constant">"unbalanced '['</span><span class="cSpecial">\n</span><span class="Constant">"</span> << <a href='003trace.cc.html#L203'>end</a><span class="Delimiter">();</span> +<span id="L103" class="LineNr">103 </span> <a href='003trace.cc.html#L197'>raise</a> << <span class="Constant">"unbalanced '['</span><span class="cSpecial">\n</span><span class="Constant">"</span> << <a href='003trace.cc.html#L226'>end</a><span class="Delimiter">();</span> <span id="L104" class="LineNr">104 </span> out<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span> <span id="L105" class="LineNr">105 </span><span class="Delimiter">}</span> <span id="L106" class="LineNr">106 </span> @@ -231,29 +231,29 @@ if ('onhashchange' in window) { <span id="L169" class="LineNr">169 </span> <span id="L170" class="LineNr">170 </span><span class="Delimiter">:(scenario string_literal_nested)</span> <span id="L171" class="LineNr">171 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [ -<span id="L172" class="LineNr">172 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L80'>address</a>:array:character<span class="Special"> <- </span>copy [abc [def]] +<span id="L172" class="LineNr">172 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L101'>address</a>:array:character<span class="Special"> <- </span>copy [abc [def]] <span id="L173" class="LineNr">173 </span>] <span id="L174" class="LineNr">174 </span><span class="traceContains">+parse: ingredient: {"abc [def]": "literal-string"}</span> <span id="L175" class="LineNr">175 </span> <span id="L176" class="LineNr">176 </span><span class="Delimiter">:(scenario string_literal_escaped)</span> <span id="L177" class="LineNr">177 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [ -<span id="L178" class="LineNr">178 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L80'>address</a>:array:character<span class="Special"> <- </span>copy [abc \[def] +<span id="L178" class="LineNr">178 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L101'>address</a>:array:character<span class="Special"> <- </span>copy [abc \[def] <span id="L179" class="LineNr">179 </span>] <span id="L180" class="LineNr">180 </span><span class="traceContains">+parse: ingredient: {"abc [def": "literal-string"}</span> <span id="L181" class="LineNr">181 </span> <span id="L182" class="LineNr">182 </span><span class="Delimiter">:(scenario string_literal_escaped_twice)</span> <span id="L183" class="LineNr">183 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [ -<span id="L184" class="LineNr">184 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L80'>address</a>:array:character<span class="Special"> <- </span>copy [ +<span id="L184" class="LineNr">184 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L101'>address</a>:array:character<span class="Special"> <- </span>copy [ <span id="L185" class="LineNr">185 </span>abc \\[def] <span id="L186" class="LineNr">186 </span>] <span id="L187" class="LineNr">187 </span><span class="traceContains">+parse: ingredient: {"\nabc \[def": "literal-string"}</span> <span id="L188" class="LineNr">188 </span> <span id="L189" class="LineNr">189 </span><span class="Delimiter">:(scenario string_literal_and_comment)</span> <span id="L190" class="LineNr">190 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [ -<span id="L191" class="LineNr">191 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L80'>address</a>:array:character<span class="Special"> <- </span>copy [abc] <span class="Comment"># comment</span> +<span id="L191" class="LineNr">191 </span> <span class="Constant">1</span>:<a href='043space.cc.html#L101'>address</a>:array:character<span class="Special"> <- </span>copy [abc] <span class="Comment"># comment</span> <span id="L192" class="LineNr">192 </span>] <span id="L193" class="LineNr">193 </span><span class="traceContains">+parse: --- defining <a href='000organization.cc.html#L113'>main</a></span> -<span id="L194" class="LineNr">194 </span><span class="traceContains">+parse: <a href='010vm.cc.html#L32'>instruction</a>: copy</span> +<span id="L194" class="LineNr">194 </span><span class="traceContains">+parse: <a href='010vm.cc.html#L33'>instruction</a>: copy</span> <span id="L195" class="LineNr">195 </span><span class="traceContains">+parse: number of ingredients: 1</span> <span id="L196" class="LineNr">196 </span><span class="traceContains">+parse: ingredient: {"abc": "literal-string"}</span> <span id="L197" class="LineNr">197 </span><span class="traceContains">+parse: product: {1: ("address" "array" "character")}</span> |