diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 20:44:10 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 20:58:37 -0800 |
commit | 201458e3bd2f1d79a0ea0b853552e9df267e92b1 (patch) | |
tree | 0a4f13662cde7f92ae0bcf641c9733e2a0fcd6ef /html/edit/010-sandbox-trace.mu.html | |
parent | e35c2d6857e1ed916221faae707e3c53ff8ed042 (diff) | |
download | mu-201458e3bd2f1d79a0ea0b853552e9df267e92b1.tar.gz |
3713 - cross-link calls with definitions in html
Diffstat (limited to 'html/edit/010-sandbox-trace.mu.html')
-rw-r--r-- | html/edit/010-sandbox-trace.mu.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/html/edit/010-sandbox-trace.mu.html b/html/edit/010-sandbox-trace.mu.html index deaf6432..1a5147af 100644 --- a/html/edit/010-sandbox-trace.mu.html +++ b/html/edit/010-sandbox-trace.mu.html @@ -71,12 +71,12 @@ 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="L15" class="LineNr"> 15 </span> env:&:environment <span class="Special"><-</span> new-programming-environment <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> <span class="Comment"># run it</span> <span id="L17" class="LineNr"> 17 </span> assume-console [ <span id="L18" class="LineNr"> 18 </span> press F4 <span id="L19" class="LineNr"> 19 </span> ] -<span id="L20" class="LineNr"> 20 </span> event-loop screen, console, env, resources +<span id="L20" class="LineNr"> 20 </span> event-loop <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> screen-should-contain [ <span id="L22" class="LineNr"> 22 </span> <span class="Constant"> . run (F4) .</span> <span id="L23" class="LineNr"> 23 </span> <span class="Constant"> .recipe foo [ ╎ .</span> @@ -91,9 +91,9 @@ if ('onhashchange' in window) { <span id="L32" class="LineNr"> 32 </span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 51</span> <span id="L33" class="LineNr"> 33 </span> ] <span id="L34" class="LineNr"> 34 </span> run [ -<span id="L35" class="LineNr"> 35 </span> event-loop screen, console, env, resources +<span id="L35" class="LineNr"> 35 </span> event-loop <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> cursor:char <span class="Special"><-</span> copy <span class="Constant">9251/␣</span> -<span id="L37" class="LineNr"> 37 </span> print screen, cursor +<span id="L37" class="LineNr"> 37 </span> print <a href='081print.mu.html#L4'>screen</a>, cursor <span id="L38" class="LineNr"> 38 </span> ] <span id="L39" class="LineNr"> 39 </span> <span class="Comment"># trace now printed and cursor shouldn't have budged</span> <span id="L40" class="LineNr"> 40 </span> screen-should-contain [ @@ -117,8 +117,8 @@ if ('onhashchange' in window) { <span id="L58" class="LineNr"> 58 </span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 55</span> <span id="L59" class="LineNr"> 59 </span> ] <span id="L60" class="LineNr"> 60 </span> run [ -<span id="L61" class="LineNr"> 61 </span> event-loop screen, console, env, resources -<span id="L62" class="LineNr"> 62 </span> print screen, cursor +<span id="L61" class="LineNr"> 61 </span> event-loop <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="L62" class="LineNr"> 62 </span> print <a href='081print.mu.html#L4'>screen</a>, cursor <span id="L63" class="LineNr"> 63 </span> ] <span id="L64" class="LineNr"> 64 </span> <span class="Comment"># trace hidden again</span> <span id="L65" class="LineNr"> 65 </span> screen-should-contain [ @@ -145,12 +145,12 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span><span class="Constant"> |]|</span> <span id="L87" class="LineNr"> 87 </span> ] <span id="L88" class="LineNr"> 88 </span> ] -<span id="L89" class="LineNr"> 89 </span> env:&:environment <span class="Special"><-</span> new-programming-environment resources, screen, <span class="Constant">[foo]</span> +<span id="L89" class="LineNr"> 89 </span> env:&:environment <span class="Special"><-</span> new-programming-environment <a href='088file.mu.html#L11'>resources</a>, <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[foo]</span> <span id="L90" class="LineNr"> 90 </span> <span class="Comment"># run it</span> <span id="L91" class="LineNr"> 91 </span> assume-console [ <span id="L92" class="LineNr"> 92 </span> press F4 <span id="L93" class="LineNr"> 93 </span> ] -<span id="L94" class="LineNr"> 94 </span> event-loop screen, console, env, resources +<span id="L94" class="LineNr"> 94 </span> event-loop <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="L95" class="LineNr"> 95 </span> screen-should-contain [ <span id="L96" class="LineNr"> 96 </span> <span class="Constant"> . run (F4) .</span> <span id="L97" class="LineNr"> 97 </span> <span class="Constant"> .recipe foo [ ╎ .</span> @@ -166,7 +166,7 @@ if ('onhashchange' in window) { <span id="L107" class="LineNr">107 </span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 51</span> <span id="L108" class="LineNr">108 </span> ] <span id="L109" class="LineNr">109 </span> run [ -<span id="L110" class="LineNr">110 </span> event-loop screen, console, env, resources +<span id="L110" class="LineNr">110 </span> event-loop <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="L111" class="LineNr">111 </span> ] <span id="L112" class="LineNr">112 </span> <span class="Comment"># trace now printed above result</span> <span id="L113" class="LineNr">113 </span> screen-should-contain [ @@ -189,13 +189,13 @@ if ('onhashchange' in window) { <span id="L130" class="LineNr">130 </span> assume-screen <span class="Constant">100/width</span>, <span class="Constant">10/height</span> <span id="L131" class="LineNr">131 </span> assume-resources [ <span id="L132" class="LineNr">132 </span> ] -<span id="L133" class="LineNr">133 </span> env:&:environment <span class="Special"><-</span> new-programming-environment resources, screen, <span class="Constant">[stash 123456789]</span> +<span id="L133" class="LineNr">133 </span> env:&:environment <span class="Special"><-</span> new-programming-environment <a href='088file.mu.html#L11'>resources</a>, <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[stash 123456789]</span> <span id="L134" class="LineNr">134 </span> <span class="Comment"># create and expand the trace</span> <span id="L135" class="LineNr">135 </span> assume-console [ <span id="L136" class="LineNr">136 </span> press F4 <span id="L137" class="LineNr">137 </span> left-click<span class="Constant"> 4</span>,<span class="Constant"> 51</span> <span id="L138" class="LineNr">138 </span> ] -<span id="L139" class="LineNr">139 </span> event-loop screen, console, env, resources +<span id="L139" class="LineNr">139 </span> event-loop <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="L140" class="LineNr">140 </span> screen-should-contain [ <span id="L141" class="LineNr">141 </span> <span class="Constant"> . run (F4) .</span> <span id="L142" class="LineNr">142 </span> <span class="Constant"> . ╎ .</span> @@ -209,7 +209,7 @@ if ('onhashchange' in window) { <span id="L150" class="LineNr">150 </span> left-click<span class="Constant"> 5</span>,<span class="Constant"> 57</span> <span id="L151" class="LineNr">151 </span> ] <span id="L152" class="LineNr">152 </span> run [ -<span id="L153" class="LineNr">153 </span> event-loop screen, console, env, resources +<span id="L153" class="LineNr">153 </span> event-loop <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="L154" class="LineNr">154 </span> ] <span id="L155" class="LineNr">155 </span> <span class="Comment"># no change; doesn't die</span> <span id="L156" class="LineNr">156 </span> screen-should-contain [ @@ -232,9 +232,9 @@ if ('onhashchange' in window) { <span id="L173" class="LineNr">173 </span> <span class="Constant">local-scope</span> <span id="L174" class="LineNr">174 </span> <span class="Constant">load-ingredients</span> <span id="L175" class="LineNr">175 </span> data:text <span class="Special"><-</span> get *sandbox, <span class="Constant">data:offset</span> -<span id="L176" class="LineNr">176 </span> response:text, _, fake-screen:&:screen, trace:text <span class="Special"><-</span> run-sandboxed data +<span id="L176" class="LineNr">176 </span> response:text, _, fake-screen:&:<a href='081print.mu.html#L4'>screen</a>, trace:text <span class="Special"><-</span> run-sandboxed data <span id="L177" class="LineNr">177 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">response:offset</span>, response -<span id="L178" class="LineNr">178 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">screen:offset</span>, fake-screen +<span id="L178" class="LineNr">178 </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="L179" class="LineNr">179 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">trace:offset</span>, trace <span id="L180" class="LineNr">180 </span>] <span id="L181" class="LineNr">181 </span> @@ -259,11 +259,11 @@ if ('onhashchange' in window) { <span id="L200" class="LineNr">200 </span> x:bool <span class="Special"><-</span> get *sandbox, <span class="Constant">display-trace?:offset</span> <span id="L201" class="LineNr">201 </span> x <span class="Special"><-</span> not x <span id="L202" class="LineNr">202 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">display-trace?:offset</span>, x -<span id="L203" class="LineNr">203 </span> hide-screen screen -<span id="L204" class="LineNr">204 </span> screen <span class="Special"><-</span> render-sandbox-side screen, env, render -<span id="L205" class="LineNr">205 </span> screen <span class="Special"><-</span> update-cursor screen, recipes, current-sandbox, sandbox-in-focus?, env +<span id="L203" class="LineNr">203 </span> <a href='081print.mu.html#L623'>hide-screen</a> <a href='081print.mu.html#L4'>screen</a> +<span id="L204" class="LineNr">204 </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, render +<span id="L205" class="LineNr">205 </span> <a href='081print.mu.html#L4'>screen</a> <span class="Special"><-</span> update-cursor <a href='081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env <span id="L206" class="LineNr">206 </span> <span class="Comment"># no change in cursor</span> -<span id="L207" class="LineNr">207 </span> show-screen screen +<span id="L207" class="LineNr">207 </span> <a href='081print.mu.html#L631'>show-screen</a> <a href='081print.mu.html#L4'>screen</a> <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>] @@ -306,7 +306,7 @@ if ('onhashchange' in window) { <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#L4'>screen</a> <span class="Special"><-</span> render-text <a href='081print.mu.html#L4'>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="L253" class="LineNr">253 </span>] |