diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 21:23:55 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 21:23:55 -0800 |
commit | fdfe34ded306526bd87568e50ac9a6e03c9c0594 (patch) | |
tree | ee2ae7e7ef788213397f8b74c3be2d79379d276d /html/edit/010-sandbox-trace.mu.html | |
parent | e932f72d36e7b9217ea2e12c12dbd8ed9ea4747b (diff) | |
download | mu-fdfe34ded306526bd87568e50ac9a6e03c9c0594.tar.gz |
3715
Fix cross-links in html for the edit/ app. I originally thought I'd need to provide a commandline flag like --rel-path or something. But we need to support different relative paths in a single html file. So the solution instead is appropriately engineering the tags file.
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 1a5147af..fdc6f188 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 <a href='088file.mu.html#L11'>resources</a>, <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[foo]</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> <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 <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="L20" class="LineNr"> 20 </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> 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 <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="L35" class="LineNr"> 35 </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> cursor:char <span class="Special"><-</span> copy <span class="Constant">9251/␣</span> -<span id="L37" class="LineNr"> 37 </span> print <a href='081print.mu.html#L4'>screen</a>, 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 <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="L61" class="LineNr"> 61 </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="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 <a href='088file.mu.html#L11'>resources</a>, <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[foo]</span> +<span id="L89" class="LineNr"> 89 </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="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 <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="L94" class="LineNr"> 94 </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="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 <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="L110" class="LineNr">110 </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="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 <a href='088file.mu.html#L11'>resources</a>, <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[stash 123456789]</span> +<span id="L133" class="LineNr">133 </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="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 <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="L139" class="LineNr">139 </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="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 <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="L153" class="LineNr">153 </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="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:&:<a href='081print.mu.html#L4'>screen</a>, 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"><a href='081print.mu.html#L4'>screen</a>: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> @@ -253,22 +253,22 @@ if ('onhashchange' in window) { <span id="L194" class="LineNr">194 </span> below-sandbox-editor?:bool <span class="Special"><-</span> greater-or-equal click-row, first-sandbox-begins <span id="L195" class="LineNr">195 </span> <span class="muControl">break-unless</span> below-sandbox-editor? <span id="L196" class="LineNr">196 </span> <span class="Comment"># identify the sandbox whose code is being clicked on</span> -<span id="L197" class="LineNr">197 </span> sandbox:&:sandbox <span class="Special"><-</span> find-click-in-sandbox-code env, click-row +<span id="L197" class="LineNr">197 </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="L198" class="LineNr">198 </span> <span class="muControl">break-unless</span> sandbox <span id="L199" class="LineNr">199 </span> <span class="Comment"># toggle its display-trace? property</span> <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> <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="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> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L205" class="LineNr">205 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L511'>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="Comment"># no change in cursor</span> -<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="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>] <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-ingredients</span> <span id="L215" class="LineNr">215 </span> <span class="Comment"># assert click-row >= sandbox.starting-row-on-screen</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, <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="L250" class="LineNr">250 </span> row, <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L356'>render-text</a> <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>] |