diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-06-24 16:00:44 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-06-24 16:00:44 -0700 |
commit | aac2775a4d30459c3090569b26e81ba18f1423a7 (patch) | |
tree | 4dfec62ec660fa9a0297cfc813b133286d3ece2e /html/edit/010-sandbox-trace.mu.html | |
parent | d467b0a5b2ebf4e3bbfb510ca317e6141cce0d06 (diff) | |
download | mu-aac2775a4d30459c3090569b26e81ba18f1423a7.tar.gz |
3951
Diffstat (limited to 'html/edit/010-sandbox-trace.mu.html')
-rw-r--r-- | html/edit/010-sandbox-trace.mu.html | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/html/edit/010-sandbox-trace.mu.html b/html/edit/010-sandbox-trace.mu.html index fbd1e830..8578fa11 100644 --- a/html/edit/010-sandbox-trace.mu.html +++ b/html/edit/010-sandbox-trace.mu.html @@ -75,13 +75,13 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr"> 12 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> |]|</span> <span id="L13" class="LineNr"> 13 </span> <span class="Conceal">¦</span> ] <span id="L14" class="LineNr"> 14 </span> ] -<span id="L15" class="LineNr"> 15 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[foo]</span> -<span id="L16" class="LineNr"> 16 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L15" class="LineNr"> 15 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[foo]</span> +<span id="L16" class="LineNr"> 16 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L17" class="LineNr"> 17 </span> <span class="Comment"># run it</span> <span id="L18" class="LineNr"> 18 </span> assume-console [ <span id="L19" class="LineNr"> 19 </span> <span class="Conceal">¦</span> press F4 <span id="L20" class="LineNr"> 20 </span> ] -<span id="L21" class="LineNr"> 21 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L21" class="LineNr"> 21 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L22" class="LineNr"> 22 </span> screen-should-contain [ <span id="L23" class="LineNr"> 23 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L24" class="LineNr"> 24 </span> <span class="Conceal">¦</span><span class="Constant"> .recipe foo [ ╎ .</span> @@ -96,9 +96,9 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 51</span> <span id="L34" class="LineNr"> 34 </span> ] <span id="L35" class="LineNr"> 35 </span> run [ -<span id="L36" class="LineNr"> 36 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L36" class="LineNr"> 36 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L37" class="LineNr"> 37 </span> <span class="Conceal">¦</span> cursor:char <span class="Special"><-</span> copy <span class="Constant">9251/␣</span> -<span id="L38" class="LineNr"> 38 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L4'>screen</a>, cursor +<span id="L38" class="LineNr"> 38 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, cursor <span id="L39" class="LineNr"> 39 </span> ] <span id="L40" class="LineNr"> 40 </span> <span class="Comment"># trace now printed and cursor shouldn't have budged</span> <span id="L41" class="LineNr"> 41 </span> screen-should-contain [ @@ -122,8 +122,8 @@ if ('onhashchange' in window) { <span id="L59" class="LineNr"> 59 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 55</span> <span id="L60" class="LineNr"> 60 </span> ] <span id="L61" class="LineNr"> 61 </span> run [ -<span id="L62" class="LineNr"> 62 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> -<span id="L63" class="LineNr"> 63 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L4'>screen</a>, cursor +<span id="L62" class="LineNr"> 62 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L63" class="LineNr"> 63 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, cursor <span id="L64" class="LineNr"> 64 </span> ] <span id="L65" class="LineNr"> 65 </span> <span class="Comment"># trace hidden again</span> <span id="L66" class="LineNr"> 66 </span> screen-should-contain [ @@ -150,13 +150,13 @@ if ('onhashchange' in window) { <span id="L87" class="LineNr"> 87 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> |]|</span> <span id="L88" class="LineNr"> 88 </span> <span class="Conceal">¦</span> ] <span id="L89" class="LineNr"> 89 </span> ] -<span id="L90" class="LineNr"> 90 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[foo]</span> -<span id="L91" class="LineNr"> 91 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L90" class="LineNr"> 90 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[foo]</span> +<span id="L91" class="LineNr"> 91 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L92" class="LineNr"> 92 </span> <span class="Comment"># run it</span> <span id="L93" class="LineNr"> 93 </span> assume-console [ <span id="L94" class="LineNr"> 94 </span> <span class="Conceal">¦</span> press F4 <span id="L95" class="LineNr"> 95 </span> ] -<span id="L96" class="LineNr"> 96 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L96" class="LineNr"> 96 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L97" class="LineNr"> 97 </span> screen-should-contain [ <span id="L98" class="LineNr"> 98 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L99" class="LineNr"> 99 </span> <span class="Conceal">¦</span><span class="Constant"> .recipe foo [ ╎ .</span> @@ -172,7 +172,7 @@ if ('onhashchange' in window) { <span id="L109" class="LineNr">109 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 51</span> <span id="L110" class="LineNr">110 </span> ] <span id="L111" class="LineNr">111 </span> run [ -<span id="L112" class="LineNr">112 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L112" class="LineNr">112 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L113" class="LineNr">113 </span> ] <span id="L114" class="LineNr">114 </span> <span class="Comment"># trace now printed above result</span> <span id="L115" class="LineNr">115 </span> screen-should-contain [ @@ -195,14 +195,14 @@ if ('onhashchange' in window) { <span id="L132" class="LineNr">132 </span> assume-screen <span class="Constant">100/width</span>, <span class="Constant">10/height</span> <span id="L133" class="LineNr">133 </span> assume-resources [ <span id="L134" class="LineNr">134 </span> ] -<span id="L135" class="LineNr">135 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[stash 123456789]</span> -<span id="L136" class="LineNr">136 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L135" class="LineNr">135 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[stash 123456789]</span> +<span id="L136" class="LineNr">136 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L137" class="LineNr">137 </span> <span class="Comment"># create and expand the trace</span> <span id="L138" class="LineNr">138 </span> assume-console [ <span id="L139" class="LineNr">139 </span> <span class="Conceal">¦</span> press F4 <span id="L140" class="LineNr">140 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 51</span> <span id="L141" class="LineNr">141 </span> ] -<span id="L142" class="LineNr">142 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L142" class="LineNr">142 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L143" class="LineNr">143 </span> screen-should-contain [ <span id="L144" class="LineNr">144 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L145" class="LineNr">145 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .</span> @@ -216,7 +216,7 @@ if ('onhashchange' in window) { <span id="L153" class="LineNr">153 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 5</span>,<span class="Constant"> 57</span> <span id="L154" class="LineNr">154 </span> ] <span id="L155" class="LineNr">155 </span> run [ -<span id="L156" class="LineNr">156 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L156" class="LineNr">156 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L157" class="LineNr">157 </span> ] <span id="L158" class="LineNr">158 </span> <span class="Comment"># no change; doesn't die</span> <span id="L159" class="LineNr">159 </span> screen-should-contain [ @@ -239,9 +239,9 @@ if ('onhashchange' in window) { <span id="L176" class="LineNr">176 </span> <span class="Constant">local-scope</span> <span id="L177" class="LineNr">177 </span> <span class="Constant">load-ingredients</span> <span id="L178" class="LineNr">178 </span> data:text <span class="Special"><-</span> get *sandbox, <span class="Constant">data:offset</span> -<span id="L179" class="LineNr">179 </span> response:text, _, fake-screen:&:<a href='../081print.mu.html#L4'>screen</a>, trace:text <span class="Special"><-</span> run-sandboxed data +<span id="L179" class="LineNr">179 </span> response:text, _, fake-screen:&:<a href='../081print.mu.html#L16'>screen</a>, trace:text <span class="Special"><-</span> run-sandboxed data <span id="L180" class="LineNr">180 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">response:offset</span>, response -<span id="L181" class="LineNr">181 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant"><a href='../081print.mu.html#L4'>screen</a>:offset</span>, fake-screen +<span id="L181" class="LineNr">181 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant"><a href='../081print.mu.html#L16'>screen</a>:offset</span>, fake-screen <span id="L182" class="LineNr">182 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">trace:offset</span>, trace <span id="L183" class="LineNr">183 </span>] <span id="L184" class="LineNr">184 </span> @@ -266,8 +266,8 @@ if ('onhashchange' in window) { <span id="L203" class="LineNr">203 </span> <span class="Conceal">¦</span> x:bool <span class="Special"><-</span> get *sandbox, <span class="Constant">display-trace?:offset</span> <span id="L204" class="LineNr">204 </span> <span class="Conceal">¦</span> x <span class="Special"><-</span> not x <span id="L205" class="LineNr">205 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">display-trace?:offset</span>, x -<span id="L206" class="LineNr">206 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> render-sandbox-side <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> -<span id="L207" class="LineNr">207 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L469'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env +<span id="L206" class="LineNr">206 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> render-sandbox-side <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L207" class="LineNr">207 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L472'>update-cursor</a> <a href='../081print.mu.html#L16'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env <span id="L208" class="LineNr">208 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> <span id="L209" class="LineNr">209 </span> <span class="Delimiter">}</span> <span id="L210" class="LineNr">210 </span>] @@ -304,13 +304,13 @@ if ('onhashchange' in window) { <span id="L241" class="LineNr">241 </span>] <span id="L242" class="LineNr">242 </span> <span id="L243" class="LineNr">243 </span><span class="Comment"># when rendering a sandbox, dump its trace before response/warning if display-trace? property is set</span> -<span id="L244" class="LineNr">244 </span><span class="muRecipe">after</span> <span class="Constant"><a href='005-sandbox.mu.html#L294'><render-sandbox-results></a></span> [ +<span id="L244" class="LineNr">244 </span><span class="muRecipe">after</span> <span class="Constant"><a href='005-sandbox.mu.html#L297'><render-sandbox-results></a></span> [ <span id="L245" class="LineNr">245 </span> <span class="Delimiter">{</span> <span id="L246" class="LineNr">246 </span> <span class="Conceal">¦</span> display-trace?:bool <span class="Special"><-</span> get *sandbox, <span class="Constant">display-trace?:offset</span> <span id="L247" class="LineNr">247 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> display-trace? <span id="L248" class="LineNr">248 </span> <span class="Conceal">¦</span> sandbox-trace:text <span class="Special"><-</span> get *sandbox, <span class="Constant">trace:offset</span> <span id="L249" class="LineNr">249 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> sandbox-trace <span class="Comment"># nothing to print; move on</span> -<span id="L250" class="LineNr">250 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L366'>render-text</a> <a href='../081print.mu.html#L4'>screen</a>, sandbox-trace, left, right, <span class="Constant">245/grey</span>, row +<span id="L250" class="LineNr">250 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L393'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-trace, left, right, <span class="Constant">245/grey</span>, row <span id="L251" class="LineNr">251 </span> <span class="Delimiter">}</span> <span id="L252" class="LineNr">252 </span><span class="Constant"> <a href='010-sandbox-trace.mu.html#L252'><render-sandbox-trace-done></a></span> <span id="L253" class="LineNr">253 </span>] |