diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2018-01-27 00:28:51 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2018-01-27 00:28:51 -0800 |
commit | b301e0c0e6b54dceecbe4ee1ef8f610411015c30 (patch) | |
tree | d40803d412718221d7c92fd50c189563877b8301 /html/edit/010-sandbox-trace.mu.html | |
parent | 805d58c6aeeeba3e4989c0eed6781b3861e8fae0 (diff) | |
download | mu-b301e0c0e6b54dceecbe4ee1ef8f610411015c30.tar.gz |
4200
Forgot to set up exuberant_ctags_rc as .ctags on new laptop.
Diffstat (limited to 'html/edit/010-sandbox-trace.mu.html')
-rw-r--r-- | html/edit/010-sandbox-trace.mu.html | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/html/edit/010-sandbox-trace.mu.html b/html/edit/010-sandbox-trace.mu.html index b8c44c26..afa5c57f 100644 --- a/html/edit/010-sandbox-trace.mu.html +++ b/html/edit/010-sandbox-trace.mu.html @@ -74,13 +74,13 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr"> 12 </span><span class="Constant"> |]|</span> <span id="L13" class="LineNr"> 13 </span> ] <span id="L14" class="LineNr"> 14 </span> ] -<span id="L15" class="LineNr"> 15 </span> env:&:environment <span class="Special"><-</span> new-programming-environment resources, screen, <span class="Constant">[foo]</span> -<span id="L16" class="LineNr"> 16 </span> render-all screen, env, render +<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> press F4 <span id="L20" class="LineNr"> 20 </span> ] -<span id="L21" class="LineNr"> 21 </span> event-loop screen, console, env, resources +<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="Constant"> . run (F4) .</span> <span id="L24" class="LineNr"> 24 </span> <span class="Constant"> .recipe foo [ ╎ .</span> @@ -95,9 +95,9 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </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> event-loop screen, console, env, resources +<span id="L36" class="LineNr"> 36 </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> cursor:char <span class="Special"><-</span> copy <span class="Constant">9251/␣</span> -<span id="L38" class="LineNr"> 38 </span> print screen, cursor +<span id="L38" class="LineNr"> 38 </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 [ @@ -121,8 +121,8 @@ if ('onhashchange' in window) { <span id="L59" class="LineNr"> 59 </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> event-loop screen, console, env, resources -<span id="L63" class="LineNr"> 63 </span> print screen, cursor +<span id="L62" class="LineNr"> 62 </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> 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 [ @@ -149,13 +149,13 @@ if ('onhashchange' in window) { <span id="L87" class="LineNr"> 87 </span><span class="Constant"> |]|</span> <span id="L88" class="LineNr"> 88 </span> ] <span id="L89" class="LineNr"> 89 </span> ] -<span id="L90" class="LineNr"> 90 </span> env:&:environment <span class="Special"><-</span> new-programming-environment resources, screen, <span class="Constant">[foo]</span> -<span id="L91" class="LineNr"> 91 </span> render-all screen, env, render +<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> press F4 <span id="L95" class="LineNr"> 95 </span> ] -<span id="L96" class="LineNr"> 96 </span> event-loop screen, console, env, resources +<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="Constant"> . run (F4) .</span> <span id="L99" class="LineNr"> 99 </span> <span class="Constant"> .recipe foo [ ╎ .</span> @@ -171,7 +171,7 @@ if ('onhashchange' in window) { <span id="L109" class="LineNr">109 </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> event-loop screen, console, env, resources +<span id="L112" class="LineNr">112 </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 [ @@ -194,14 +194,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> new-programming-environment resources, screen, <span class="Constant">[stash 123456789]</span> -<span id="L136" class="LineNr">136 </span> render-all screen, env, render +<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> press F4 <span id="L140" class="LineNr">140 </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> event-loop screen, console, env, resources +<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="Constant"> . run (F4) .</span> <span id="L145" class="LineNr">145 </span> <span class="Constant"> . ╎ .</span> @@ -215,7 +215,7 @@ if ('onhashchange' in window) { <span id="L153" class="LineNr">153 </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> event-loop screen, console, env, resources +<span id="L156" class="LineNr">156 </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 [ @@ -238,14 +238,14 @@ 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-inputs</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:&:screen, 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">screen: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> <span id="L185" class="LineNr">185 </span><span class="Comment"># clicks on sandbox code toggle its display-trace? flag</span> -<span id="L186" class="LineNr">186 </span><span class="muRecipe">after</span> <span class="Constant"><global-touch></span> [ +<span id="L186" class="LineNr">186 </span><span class="muRecipe">after</span> <span class="Constant"><a href='004-programming-environment.mu.html#L81'><global-touch></a></span> [ <span id="L187" class="LineNr">187 </span> <span class="Comment"># check if it's inside the code of any sandbox</span> <span id="L188" class="LineNr">188 </span> <span class="Delimiter">{</span> <span id="L189" class="LineNr">189 </span> sandbox-left-margin:num <span class="Special"><-</span> get *current-sandbox, <span class="Constant">left:offset</span> @@ -259,19 +259,19 @@ if ('onhashchange' in window) { <span id="L197" class="LineNr">197 </span> below-sandbox-editor?:bool <span class="Special"><-</span> greater-or-equal click-row, first-sandbox-begins <span id="L198" class="LineNr">198 </span> <span class="muControl">break-unless</span> below-sandbox-editor? <span id="L199" class="LineNr">199 </span> <span class="Comment"># identify the sandbox whose code is being clicked on</span> -<span id="L200" class="LineNr">200 </span> sandbox:&:sandbox <span class="Special"><-</span> find-click-in-sandbox-code env, click-row +<span id="L200" class="LineNr">200 </span> sandbox:&:sandbox <span class="Special"><-</span> <a href='010-sandbox-trace.mu.html#L212'>find-click-in-sandbox-code</a> env, click-row <span id="L201" class="LineNr">201 </span> <span class="muControl">break-unless</span> sandbox <span id="L202" class="LineNr">202 </span> <span class="Comment"># toggle its display-trace? property</span> <span id="L203" class="LineNr">203 </span> x:bool <span class="Special"><-</span> get *sandbox, <span class="Constant">display-trace?:offset</span> <span id="L204" class="LineNr">204 </span> x <span class="Special"><-</span> not x <span id="L205" class="LineNr">205 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">display-trace?:offset</span>, x -<span id="L206" class="LineNr">206 </span> screen <span class="Special"><-</span> render-sandbox-side screen, env, render -<span id="L207" class="LineNr">207 </span> screen <span class="Special"><-</span> update-cursor screen, recipes, current-sandbox, sandbox-in-focus?, env +<span id="L206" class="LineNr">206 </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> <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="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>] <span id="L211" class="LineNr">211 </span> -<span id="L212" class="LineNr">212 </span><span class="muRecipe">def</span> find-click-in-sandbox-code env:&:environment, click-row:num<span class="muRecipe"> -> </span>sandbox:&:sandbox [ +<span id="L212" class="LineNr">212 </span><span class="muRecipe">def</span> <a href='010-sandbox-trace.mu.html#L212'>find-click-in-sandbox-code</a> env:&:environment, click-row:num<span class="muRecipe"> -> </span>sandbox:&:sandbox [ <span id="L213" class="LineNr">213 </span> <span class="Constant">local-scope</span> <span id="L214" class="LineNr">214 </span> <span class="Constant">load-inputs</span> <span id="L215" class="LineNr">215 </span> <span class="Comment"># assert click-row >= sandbox.starting-row-on-screen</span> @@ -303,15 +303,15 @@ 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"><render-sandbox-results></span> [ +<span id="L244" class="LineNr">244 </span><span class="muRecipe">after</span> <span class="Constant"><a href='005-sandbox.mu.html#L302'><render-sandbox-results></a></span> [ <span id="L245" class="LineNr">245 </span> <span class="Delimiter">{</span> <span id="L246" class="LineNr">246 </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="muControl">break-unless</span> display-trace? <span id="L248" class="LineNr">248 </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="muControl">break-unless</span> sandbox-trace <span class="Comment"># nothing to print; move on</span> -<span id="L250" class="LineNr">250 </span> row, screen <span class="Special"><-</span> render-text screen, sandbox-trace, left, right, <span class="Constant">245/grey</span>, row +<span id="L250" class="LineNr">250 </span> row, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L398'>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"> <render-sandbox-trace-done></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>] </pre> </body> |