about summary refs log tree commit diff stats
path: root/html/edit/004-programming-environment.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-01-11 09:40:41 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-01-11 09:40:41 -0800
commit717d6cddc1464df9744a37056016b9f4230ab650 (patch)
tree5ce6be0dd5949c667738c37976716f4c04e1b1c6 /html/edit/004-programming-environment.mu.html
parent12712a40ed7441c7238da5e87438bc7e8b01f91a (diff)
downloadmu-717d6cddc1464df9744a37056016b9f4230ab650.tar.gz
3732
Diffstat (limited to 'html/edit/004-programming-environment.mu.html')
-rw-r--r--html/edit/004-programming-environment.mu.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/html/edit/004-programming-environment.mu.html b/html/edit/004-programming-environment.mu.html
index 31bf0534..e543a1f1 100644
--- a/html/edit/004-programming-environment.mu.html
+++ b/html/edit/004-programming-environment.mu.html
@@ -68,7 +68,7 @@ if ('onhashchange' in window) {
 <span id="L7" class="LineNr">  7 </span>  <span class="Constant">local-scope</span>
 <span id="L8" class="LineNr">  8 </span>  open-console
 <span id="L9" class="LineNr">  9 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <span class="Constant">0/filesystem</span>, <span class="Constant">0/screen</span>
-<span id="L10" class="LineNr"> 10 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L10" class="LineNr"> 10 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L11" class="LineNr"> 11 </span>  <a href='004-programming-environment.mu.html#L39'>event-loop</a> <span class="Constant">0/screen</span>, <span class="Constant">0/console</span>, env, <span class="Constant">0/filesystem</span>
 <span id="L12" class="LineNr"> 12 </span>  <span class="Comment"># never gets here</span>
 <span id="L13" class="LineNr"> 13 </span>]
@@ -87,10 +87,10 @@ if ('onhashchange' in window) {
 <span id="L26" class="LineNr"> 26 </span>  <span class="Comment"># recipe editor on the left</span>
 <span id="L27" class="LineNr"> 27 </span>  initial-recipe-contents:text <span class="Special">&lt;-</span> <a href='../088file.mu.html#L38'>slurp</a> <a href='../088file.mu.html#L11'>resources</a>, <span class="Constant">[lesson/recipes.mu]</span>  <span class="Comment"># ignore errors</span>
 <span id="L28" class="LineNr"> 28 </span>  divider:num, _ <span class="Special">&lt;-</span> divide-with-remainder width,<span class="Constant"> 2</span>
-<span id="L29" class="LineNr"> 29 </span>  recipes:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> initial-recipe-contents, <span class="Constant">0/left</span>, divider/right
+<span id="L29" class="LineNr"> 29 </span>  recipes:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> initial-recipe-contents, <span class="Constant">0/left</span>, divider/right
 <span id="L30" class="LineNr"> 30 </span>  <span class="Comment"># sandbox editor on the right</span>
 <span id="L31" class="LineNr"> 31 </span>  sandbox-left:num <span class="Special">&lt;-</span> add divider,<span class="Constant"> 1</span>
-<span id="L32" class="LineNr"> 32 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L51'>new-editor</a> test-sandbox-editor-contents, sandbox-left, width/right
+<span id="L32" class="LineNr"> 32 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> <a href='001-editor.mu.html#L52'>new-editor</a> test-sandbox-editor-contents, sandbox-left, width/right
 <span id="L33" class="LineNr"> 33 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">recipes:offset</span>, recipes
 <span id="L34" class="LineNr"> 34 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">current-sandbox:offset</span>, current-sandbox
 <span id="L35" class="LineNr"> 35 </span>  *result <span class="Special">&lt;-</span> put *result, <span class="Constant">sandbox-in-focus?:offset</span>, <span class="Constant">0/false</span>
@@ -185,14 +185,14 @@ if ('onhashchange' in window) {
 <span id="L124" class="LineNr">124 </span>          <span class="Delimiter">{</span>
 <span id="L125" class="LineNr">125 </span>            <span class="muControl">break-unless</span> render-all-on-no-more-events?
 <span id="L126" class="LineNr">126 </span>            <span class="Comment"># no more events, and we have to force render</span>
-<span id="L127" class="LineNr">127 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L127" class="LineNr">127 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L128" class="LineNr">128 </span>            render-all-on-no-more-events? <span class="Special">&lt;-</span> copy <span class="Constant">0/false</span>
 <span id="L129" class="LineNr">129 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L130" class="LineNr">130 </span>          <span class="Delimiter">}</span>
 <span id="L131" class="LineNr">131 </span>          <span class="Comment"># no more events, no force render</span>
 <span id="L132" class="LineNr">132 </span>          <span class="Delimiter">{</span>
 <span id="L133" class="LineNr">133 </span>            <span class="muControl">break-unless</span> render?
-<span id="L134" class="LineNr">134 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L477'>render-recipes</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L134" class="LineNr">134 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L477'>render-recipes</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L135" class="LineNr">135 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L136" class="LineNr">136 </span>          <span class="Delimiter">}</span>
 <span id="L137" class="LineNr">137 </span>        <span class="Delimiter">}</span>
@@ -213,14 +213,14 @@ if ('onhashchange' in window) {
 <span id="L152" class="LineNr">152 </span>          <span class="Delimiter">{</span>
 <span id="L153" class="LineNr">153 </span>            <span class="muControl">break-unless</span> render-all-on-no-more-events?
 <span id="L154" class="LineNr">154 </span>            <span class="Comment"># no more events, and we have to force render</span>
-<span id="L155" class="LineNr">155 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L155" class="LineNr">155 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L156" class="LineNr">156 </span>            render-all-on-no-more-events? <span class="Special">&lt;-</span> copy <span class="Constant">0/false</span>
 <span id="L157" class="LineNr">157 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L158" class="LineNr">158 </span>          <span class="Delimiter">}</span>
 <span id="L159" class="LineNr">159 </span>          <span class="Comment"># no more events, no force render</span>
 <span id="L160" class="LineNr">160 </span>          <span class="Delimiter">{</span>
 <span id="L161" class="LineNr">161 </span>            <span class="muControl">break-unless</span> render?
-<span id="L162" class="LineNr">162 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</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="L162" class="LineNr">162 </span>            <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</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#L123'>render</a>
 <span id="L163" class="LineNr">163 </span>            <span class="muControl">jump</span> <span class="Constant">+finish-event</span>
 <span id="L164" class="LineNr">164 </span>          <span class="Delimiter">}</span>
 <span id="L165" class="LineNr">165 </span>        <span class="Delimiter">}</span>
@@ -381,7 +381,7 @@ if ('onhashchange' in window) {
 <span id="L320" class="LineNr">320 </span>    ]
 <span id="L321" class="LineNr">321 </span>  ]
 <span id="L322" class="LineNr">322 </span>  env:&amp;:environment <span class="Special">&lt;-</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">[def]</span>  <span class="Comment"># contents of sandbox</span>
-<span id="L323" class="LineNr">323 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L323" class="LineNr">323 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L324" class="LineNr">324 </span>  <span class="Comment"># type one letter in each of them</span>
 <span id="L325" class="LineNr">325 </span>  assume-console [
 <span id="L326" class="LineNr">326 </span>    left-click<span class="Constant"> 1</span>,<span class="Constant"> 1</span>
@@ -431,7 +431,7 @@ if ('onhashchange' in window) {
 <span id="L370" class="LineNr">370 </span>    ]
 <span id="L371" class="LineNr">371 </span>  ]
 <span id="L372" class="LineNr">372 </span>  env:&amp;:environment <span class="Special">&lt;-</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">[def]</span>
-<span id="L373" class="LineNr">373 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L373" class="LineNr">373 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L374" class="LineNr">374 </span>  <span class="Comment"># initialize programming environment and highlight cursor</span>
 <span id="L375" class="LineNr">375 </span>  assume-console <span class="Constant">[]</span>
 <span id="L376" class="LineNr">376 </span>  run [
@@ -476,7 +476,7 @@ if ('onhashchange' in window) {
 <span id="L415" class="LineNr">415 </span>  test-sandbox-editor-contents:text <span class="Special">&lt;-</span> new <span class="Constant">[abc</span>
 <span id="L416" class="LineNr">416 </span><span class="Constant">def]</span>
 <span id="L417" class="LineNr">417 </span>  env:&amp;:environment <span class="Special">&lt;-</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>, test-sandbox-editor-contents
-<span id="L418" class="LineNr">418 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L418" class="LineNr">418 </span>  <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L419" class="LineNr">419 </span>  screen-should-contain [
 <span id="L420" class="LineNr">420 </span>   <span class="Constant"> .           run (F4)           .</span>
 <span id="L421" class="LineNr">421 </span>   <span class="Constant"> .               ╎abc           .</span>
@@ -550,7 +550,7 @@ if ('onhashchange' in window) {
 <span id="L489" class="LineNr">489 </span>  <span class="Comment"># draw dotted line after recipes</span>
 <span id="L490" class="LineNr">490 </span>  <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right, <span class="Constant">9480/horizontal-dotted</span>
 <span id="L491" class="LineNr">491 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L492" class="LineNr">492 </span>  <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
+<span id="L492" class="LineNr">492 </span>  <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
 <span id="L493" class="LineNr">493 </span>]
 <span id="L494" class="LineNr">494 </span>
 <span id="L495" class="LineNr">495 </span><span class="Comment"># replaced in a later layer</span>
@@ -566,7 +566,7 @@ if ('onhashchange' in window) {
 <span id="L505" class="LineNr">505 </span>  <span class="Comment"># draw solid line after code (you'll see why in later layers)</span>
 <span id="L506" class="LineNr">506 </span>  <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right
 <span id="L507" class="LineNr">507 </span>  row <span class="Special">&lt;-</span> add row,<span class="Constant"> 1</span>
-<span id="L508" class="LineNr">508 </span>  <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
+<span id="L508" class="LineNr">508 </span>  <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, left, right
 <span id="L509" class="LineNr">509 </span>]
 <span id="L510" class="LineNr">510 </span>
 <span id="L511" class="LineNr">511 </span><span class="muRecipe">def</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a>, recipes:&amp;:editor, current-sandbox:&amp;:editor, sandbox-in-focus?:bool, env:&amp;:environment<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L4'>screen</a>:&amp;:<a href='../081print.mu.html#L4'>screen</a> [
@@ -655,7 +655,7 @@ if ('onhashchange' in window) {
 <span id="L594" class="LineNr">594 </span>  <span class="Delimiter">{</span>
 <span id="L595" class="LineNr">595 </span>    redraw-screen?:bool <span class="Special">&lt;-</span> equal c, <span class="Constant">12/ctrl-l</span>
 <span id="L596" class="LineNr">596 </span>    <span class="muControl">break-unless</span> redraw-screen?
-<span id="L597" class="LineNr">597 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env:&amp;:environment, <a href='001-editor.mu.html#L122'>render</a>
+<span id="L597" class="LineNr">597 </span>    <a href='../081print.mu.html#L4'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env:&amp;:environment, <a href='001-editor.mu.html#L123'>render</a>
 <span id="L598" class="LineNr">598 </span>    <a href='../081print.mu.html#L53'>sync-screen</a> <a href='../081print.mu.html#L4'>screen</a>
 <span id="L599" class="LineNr">599 </span>    <span class="muControl">loop</span> <span class="Constant">+next-event</span>
 <span id="L600" class="LineNr">600 </span>  <span class="Delimiter">}</span>