about summary refs log tree commit diff stats
path: root/html/edit/005-sandbox.mu.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/edit/005-sandbox.mu.html')
-rw-r--r--html/edit/005-sandbox.mu.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/html/edit/005-sandbox.mu.html b/html/edit/005-sandbox.mu.html
index 1c6ab31c..51d920f8 100644
--- a/html/edit/005-sandbox.mu.html
+++ b/html/edit/005-sandbox.mu.html
@@ -208,7 +208,7 @@ if ('onhashchange' in window) {
 <span id="L145" class="LineNr"> 145 </span>
 <span id="L146" class="LineNr"> 146 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L146'>run-sandboxes</a> env:&amp;:environment, <a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a><span class="muRecipe"> -&gt; </span>errors-found?:bool, env:&amp;:environment, <a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a> [
 <span id="L147" class="LineNr"> 147 </span>  <span class="Constant">local-scope</span>
-<span id="L148" class="LineNr"> 148 </span>  <span class="Constant">load-ingredients</span>
+<span id="L148" class="LineNr"> 148 </span>  <span class="Constant">load-inputs</span>
 <span id="L149" class="LineNr"> 149 </span>  errors-found?:bool <span class="Special">&lt;-</span> update-recipes env, <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>
 <span id="L150" class="LineNr"> 150 </span>  <span class="muControl">jump-if</span> errors-found?, <span class="Constant">+return</span>
 <span id="L151" class="LineNr"> 151 </span>  <span class="Comment"># check contents of right editor (sandbox)</span>
@@ -259,7 +259,7 @@ if ('onhashchange' in window) {
 <span id="L196" class="LineNr"> 196 </span><span class="Comment"># replaced in a later layer (whereupon errors-found? will actually be set)</span>
 <span id="L197" class="LineNr"> 197 </span><span class="muRecipe">def</span> update-recipes env:&amp;:environment, <a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a><span class="muRecipe"> -&gt; </span>errors-found?:bool, env:&amp;:environment, <a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a> [
 <span id="L198" class="LineNr"> 198 </span>  <span class="Constant">local-scope</span>
-<span id="L199" class="LineNr"> 199 </span>  <span class="Constant">load-ingredients</span>
+<span id="L199" class="LineNr"> 199 </span>  <span class="Constant">load-inputs</span>
 <span id="L200" class="LineNr"> 200 </span>  recipes:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">recipes:offset</span>
 <span id="L201" class="LineNr"> 201 </span>  in:text <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L683'>editor-contents</a> recipes
 <span id="L202" class="LineNr"> 202 </span>  <a href='../088file.mu.html#L11'>resources</a> <span class="Special">&lt;-</span> <a href='../088file.mu.html#L127'>dump</a> <a href='../088file.mu.html#L11'>resources</a>, <span class="Constant">[lesson/recipes.mu]</span>, in
@@ -270,7 +270,7 @@ if ('onhashchange' in window) {
 <span id="L207" class="LineNr"> 207 </span><span class="Comment"># replaced in a later layer</span>
 <span id="L208" class="LineNr"> 208 </span><span class="muRecipe">def</span> update-sandbox sandbox:&amp;:sandbox, env:&amp;:environment, idx:num<span class="muRecipe"> -&gt; </span>sandbox:&amp;:sandbox, env:&amp;:environment [
 <span id="L209" class="LineNr"> 209 </span>  <span class="Constant">local-scope</span>
-<span id="L210" class="LineNr"> 210 </span>  <span class="Constant">load-ingredients</span>
+<span id="L210" class="LineNr"> 210 </span>  <span class="Constant">load-inputs</span>
 <span id="L211" class="LineNr"> 211 </span>  data:text <span class="Special">&lt;-</span> get *sandbox, <span class="Constant">data:offset</span>
 <span id="L212" class="LineNr"> 212 </span>  response:text, _, fake-screen:&amp;:<a href='../081print.mu.html#L16'>screen</a> <span class="Special">&lt;-</span> run-sandboxed data
 <span id="L213" class="LineNr"> 213 </span>  *sandbox <span class="Special">&lt;-</span> put *sandbox, <span class="Constant">response:offset</span>, response
@@ -279,14 +279,14 @@ if ('onhashchange' in window) {
 <span id="L216" class="LineNr"> 216 </span>
 <span id="L217" class="LineNr"> 217 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L217'>update-status</a> <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, msg:text, color:num<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a> [
 <span id="L218" class="LineNr"> 218 </span>  <span class="Constant">local-scope</span>
-<span id="L219" class="LineNr"> 219 </span>  <span class="Constant">load-ingredients</span>
+<span id="L219" class="LineNr"> 219 </span>  <span class="Constant">load-inputs</span>
 <span id="L220" class="LineNr"> 220 </span>  <a href='../081print.mu.html#L16'>screen</a> <span class="Special">&lt;-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>,<span class="Constant"> 0</span>,<span class="Constant"> 2</span>
 <span id="L221" class="LineNr"> 221 </span>  <a href='../081print.mu.html#L16'>screen</a> <span class="Special">&lt;-</span> print <a href='../081print.mu.html#L16'>screen</a>, msg, color, <span class="Constant">238/grey/background</span>
 <span id="L222" class="LineNr"> 222 </span>]
 <span id="L223" class="LineNr"> 223 </span>
 <span id="L224" class="LineNr"> 224 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L224'>save-sandboxes</a> env:&amp;:environment, <a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a><span class="muRecipe"> -&gt; </span><a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a> [
 <span id="L225" class="LineNr"> 225 </span>  <span class="Constant">local-scope</span>
-<span id="L226" class="LineNr"> 226 </span>  <span class="Constant">load-ingredients</span>
+<span id="L226" class="LineNr"> 226 </span>  <span class="Constant">load-inputs</span>
 <span id="L227" class="LineNr"> 227 </span>  trace<span class="Constant"> 11</span>, <span class="Constant">[app]</span>, <span class="Constant">[save sandboxes]</span>
 <span id="L228" class="LineNr"> 228 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">current-sandbox:offset</span>
 <span id="L229" class="LineNr"> 229 </span>  <span class="Comment"># first clear previous versions, in case we deleted some sandbox</span>
@@ -304,7 +304,7 @@ if ('onhashchange' in window) {
 <span id="L241" class="LineNr"> 241 </span>
 <span id="L242" class="LineNr"> 242 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L242'>save-sandbox</a> <a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a>, sandbox:&amp;:sandbox, sandbox-index:num<span class="muRecipe"> -&gt; </span><a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a> [
 <span id="L243" class="LineNr"> 243 </span>  <span class="Constant">local-scope</span>
-<span id="L244" class="LineNr"> 244 </span>  <span class="Constant">load-ingredients</span>
+<span id="L244" class="LineNr"> 244 </span>  <span class="Constant">load-inputs</span>
 <span id="L245" class="LineNr"> 245 </span>  data:text <span class="Special">&lt;-</span> get *sandbox, <span class="Constant">data:offset</span>
 <span id="L246" class="LineNr"> 246 </span>  filename:text <span class="Special">&lt;-</span> append <span class="Constant">[lesson/]</span>, sandbox-index
 <span id="L247" class="LineNr"> 247 </span>  <a href='../088file.mu.html#L11'>resources</a> <span class="Special">&lt;-</span> <a href='../088file.mu.html#L127'>dump</a> <a href='../088file.mu.html#L11'>resources</a>, filename, data
@@ -313,7 +313,7 @@ if ('onhashchange' in window) {
 <span id="L250" class="LineNr"> 250 </span>
 <span id="L251" class="LineNr"> 251 </span><span class="muRecipe">def!</span> render-sandbox-side <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, env:&amp;:environment, render-editor:<a href='004-programming-environment.mu.html#L400'>render-recipe</a><span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, env:&amp;:environment [
 <span id="L252" class="LineNr"> 252 </span>  <span class="Constant">local-scope</span>
-<span id="L253" class="LineNr"> 253 </span>  <span class="Constant">load-ingredients</span>
+<span id="L253" class="LineNr"> 253 </span>  <span class="Constant">load-inputs</span>
 <span id="L254" class="LineNr"> 254 </span>  trace<span class="Constant"> 11</span>, <span class="Constant">[app]</span>, <span class="Constant">[render sandbox side]</span>
 <span id="L255" class="LineNr"> 255 </span>  old-top-idx:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L509'>save-top-idx</a> <a href='../081print.mu.html#L16'>screen</a>
 <span id="L256" class="LineNr"> 256 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">current-sandbox:offset</span>
@@ -340,7 +340,7 @@ if ('onhashchange' in window) {
 <span id="L277" class="LineNr"> 277 </span>
 <span id="L278" class="LineNr"> 278 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L278'>render-sandboxes</a> <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, sandbox:&amp;:sandbox, left:num, right:num, row:num, render-from:num, idx:num<span class="muRecipe"> -&gt; </span>row:num, <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, sandbox:&amp;:sandbox [
 <span id="L279" class="LineNr"> 279 </span>  <span class="Constant">local-scope</span>
-<span id="L280" class="LineNr"> 280 </span>  <span class="Constant">load-ingredients</span>
+<span id="L280" class="LineNr"> 280 </span>  <span class="Constant">load-inputs</span>
 <span id="L281" class="LineNr"> 281 </span>  <span class="muControl">return-unless</span> sandbox
 <span id="L282" class="LineNr"> 282 </span>  <a href='../081print.mu.html#L782'>screen-height</a>:num <span class="Special">&lt;-</span> <a href='../081print.mu.html#L782'>screen-height</a> <a href='../081print.mu.html#L16'>screen</a>
 <span id="L283" class="LineNr"> 283 </span>  hidden?:bool <span class="Special">&lt;-</span> lesser-than idx, render-from
@@ -395,7 +395,7 @@ if ('onhashchange' in window) {
 <span id="L332" class="LineNr"> 332 </span>
 <span id="L333" class="LineNr"> 333 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L333'>render-sandbox-menu</a> <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, sandbox-index:num, left:num, right:num<span class="muRecipe"> -&gt; </span><a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a> [
 <span id="L334" class="LineNr"> 334 </span>  <span class="Constant">local-scope</span>
-<span id="L335" class="LineNr"> 335 </span>  <span class="Constant">load-ingredients</span>
+<span id="L335" class="LineNr"> 335 </span>  <span class="Constant">load-inputs</span>
 <span id="L336" class="LineNr"> 336 </span>  <a href='../081print.mu.html#L760'>move-cursor-to-column</a> <a href='../081print.mu.html#L16'>screen</a>, left
 <span id="L337" class="LineNr"> 337 </span>  edit-button-left:num, edit-button-right:num, copy-button-left:num, copy-button-right:num, recipe-button-left:num, recipe-button-right:num, delete-button-left:num <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L378'>sandbox-menu-columns</a> left, right
 <span id="L338" class="LineNr"> 338 </span>  print <a href='../081print.mu.html#L16'>screen</a>, sandbox-index, <span class="Constant">232/dark-grey</span>, <span class="Constant">245/grey</span>
@@ -440,7 +440,7 @@ if ('onhashchange' in window) {
 <span id="L377" class="LineNr"> 377 </span><span class="Comment"># all left/right pairs are inclusive</span>
 <span id="L378" class="LineNr"> 378 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L378'>sandbox-menu-columns</a> left:num, right:num<span class="muRecipe"> -&gt; </span>edit-button-left:num, edit-button-right:num, copy-button-left:num, copy-button-right:num, recipe-button-left:num, recipe-button-right:num, delete-button-left:num [
 <span id="L379" class="LineNr"> 379 </span>  <span class="Constant">local-scope</span>
-<span id="L380" class="LineNr"> 380 </span>  <span class="Constant">load-ingredients</span>
+<span id="L380" class="LineNr"> 380 </span>  <span class="Constant">load-inputs</span>
 <span id="L381" class="LineNr"> 381 </span>  start-buttons:num <span class="Special">&lt;-</span> add left, <span class="Constant">4/space-for-sandbox-index</span>
 <span id="L382" class="LineNr"> 382 </span>  buttons-space:num <span class="Special">&lt;-</span> subtract right, start-buttons
 <span id="L383" class="LineNr"> 383 </span>  button-width:num <span class="Special">&lt;-</span> divide-with-remainder buttons-space,<span class="Constant"> 4</span>  <span class="Comment"># integer division</span>
@@ -460,7 +460,7 @@ if ('onhashchange' in window) {
 <span id="L397" class="LineNr"> 397 </span><span class="Comment"># like 'render-code' but without syntax-based colorization</span>
 <span id="L398" class="LineNr"> 398 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L398'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, s:text, left:num, right:num, color:num, row:num<span class="muRecipe"> -&gt; </span>row:num, <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a> [
 <span id="L399" class="LineNr"> 399 </span>  <span class="Constant">local-scope</span>
-<span id="L400" class="LineNr"> 400 </span>  <span class="Constant">load-ingredients</span>
+<span id="L400" class="LineNr"> 400 </span>  <span class="Constant">load-inputs</span>
 <span id="L401" class="LineNr"> 401 </span>  <span class="muControl">return-unless</span> s
 <span id="L402" class="LineNr"> 402 </span>  column:num <span class="Special">&lt;-</span> copy left
 <span id="L403" class="LineNr"> 403 </span>  <a href='../081print.mu.html#L16'>screen</a> <span class="Special">&lt;-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column
@@ -537,7 +537,7 @@ if ('onhashchange' in window) {
 <span id="L474" class="LineNr"> 474 </span><span class="Comment"># assumes programming environment has no sandboxes; restores them from previous session</span>
 <span id="L475" class="LineNr"> 475 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L475'>restore-sandboxes</a> env:&amp;:environment, <a href='../088file.mu.html#L11'>resources</a>:&amp;:<a href='../088file.mu.html#L11'>resources</a><span class="muRecipe"> -&gt; </span>env:&amp;:environment [
 <span id="L476" class="LineNr"> 476 </span>  <span class="Constant">local-scope</span>
-<span id="L477" class="LineNr"> 477 </span>  <span class="Constant">load-ingredients</span>
+<span id="L477" class="LineNr"> 477 </span>  <span class="Constant">load-inputs</span>
 <span id="L478" class="LineNr"> 478 </span>  <span class="Comment"># read all scenarios, pushing them to end of a list of scenarios</span>
 <span id="L479" class="LineNr"> 479 </span>  idx:num <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
 <span id="L480" class="LineNr"> 480 </span>  curr:&amp;:sandbox <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
@@ -571,7 +571,7 @@ if ('onhashchange' in window) {
 <span id="L508" class="LineNr"> 508 </span><span class="Comment"># leave cursor at start of next line</span>
 <span id="L509" class="LineNr"> 509 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L509'>render-screen</a> <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a>, sandbox-screen:&amp;:<a href='../081print.mu.html#L16'>screen</a>, left:num, right:num, row:num<span class="muRecipe"> -&gt; </span>row:num, <a href='../081print.mu.html#L16'>screen</a>:&amp;:<a href='../081print.mu.html#L16'>screen</a> [
 <span id="L510" class="LineNr"> 510 </span>  <span class="Constant">local-scope</span>
-<span id="L511" class="LineNr"> 511 </span>  <span class="Constant">load-ingredients</span>
+<span id="L511" class="LineNr"> 511 </span>  <span class="Constant">load-inputs</span>
 <span id="L512" class="LineNr"> 512 </span>  <span class="muControl">return-unless</span> sandbox-screen
 <span id="L513" class="LineNr"> 513 </span>  <span class="Comment"># print 'screen:'</span>
 <span id="L514" class="LineNr"> 514 </span>  row <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L398'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[screen:]</span>, left, right, <span class="Constant">245/grey</span>, row
@@ -745,7 +745,7 @@ if ('onhashchange' in window) {
 <span id="L682" class="LineNr"> 682 </span>
 <span id="L683" class="LineNr"> 683 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L683'>editor-contents</a> editor:&amp;:editor<span class="muRecipe"> -&gt; </span>result:text [
 <span id="L684" class="LineNr"> 684 </span>  <span class="Constant">local-scope</span>
-<span id="L685" class="LineNr"> 685 </span>  <span class="Constant">load-ingredients</span>
+<span id="L685" class="LineNr"> 685 </span>  <span class="Constant">load-inputs</span>
 <span id="L686" class="LineNr"> 686 </span>  buf:&amp;:<a href='../061text.mu.html#L120'>buffer</a>:char <span class="Special">&lt;-</span> <a href='../061text.mu.html#L125'>new-buffer</a><span class="Constant"> 80</span>
 <span id="L687" class="LineNr"> 687 </span>  curr:&amp;:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special">&lt;-</span> get *editor, <span class="Constant">data:offset</span>
 <span id="L688" class="LineNr"> 688 </span>  <span class="Comment"># skip § sentinel</span>
@@ -1007,7 +1007,7 @@ if ('onhashchange' in window) {
 <span id="L944" class="LineNr"> 944 </span><span class="Comment"># return 0 if there's no such sandbox, either because 'in' doesn't exist in 'env', or because it's the first sandbox</span>
 <span id="L945" class="LineNr"> 945 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L945'>previous-sandbox</a> env:&amp;:environment, in:&amp;:sandbox<span class="muRecipe"> -&gt; </span>out:&amp;:sandbox [
 <span id="L946" class="LineNr"> 946 </span>  <span class="Constant">local-scope</span>
-<span id="L947" class="LineNr"> 947 </span>  <span class="Constant">load-ingredients</span>
+<span id="L947" class="LineNr"> 947 </span>  <span class="Constant">load-inputs</span>
 <span id="L948" class="LineNr"> 948 </span>  curr:&amp;:sandbox <span class="Special">&lt;-</span> get *env, <span class="Constant">sandbox:offset</span>
 <span id="L949" class="LineNr"> 949 </span>  <span class="muControl">return-unless</span> curr, <span class="Constant">0/nil</span>
 <span id="L950" class="LineNr"> 950 </span>  <a href='../065duplex_list.mu.html#L25'>next</a>:&amp;:sandbox <span class="Special">&lt;-</span> get *curr, <span class="Constant">next-sandbox:offset</span>