about summary refs log tree commit diff stats
path: root/html/063list.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-29 15:55:05 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-29 15:55:05 -0700
commit9570363aec35e187e2395b1760a4b94e71580ac9 (patch)
tree5b0d9cf65b5d5a403ab29e88535ba158efb276fe /html/063list.mu.html
parentb318b7fb127a2bdf3e394b315a45d339dc738447 (diff)
downloadmu-9570363aec35e187e2395b1760a4b94e71580ac9.tar.gz
1885
Diffstat (limited to 'html/063list.mu.html')
-rw-r--r--html/063list.mu.html50
1 files changed, 25 insertions, 25 deletions
diff --git a/html/063list.mu.html b/html/063list.mu.html
index 9763729b..50060a5f 100644
--- a/html/063list.mu.html
+++ b/html/063list.mu.html
@@ -13,13 +13,13 @@
 pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background-color: #080808; }
 body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 * { font-size: 1.05em; }
+.muRecipe { color: #ff8700; }
 .muScenario { color: #00af00; }
-.CommentedCode { color: #6c6c6c; }
 .Comment { color: #9090ff; }
 .Constant { color: #00a0a0; }
 .Special { color: #ff6060; }
+.CommentedCode { color: #6c6c6c; }
 .muControl { color: #c0a020; }
-.muRecipe { color: #ff8700; }
 -->
 </style>
 
@@ -47,48 +47,48 @@ container list [
   x:location<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
   in:address:list<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
   result:address:list<span class="Special"> &lt;- </span>new list:type
-  val:address:location<span class="Special"> &lt;- </span>get-address result:address:list/deref, value:offset
-  val:address:location/deref<span class="Special"> &lt;- </span>copy x:location
-  next:address:address:list<span class="Special"> &lt;- </span>get-address result:address:list/deref, next:offset
-  next:address:address:list/deref<span class="Special"> &lt;- </span>copy in:address:list
-  <span class="muControl">reply</span> result:address:list
+  val:address:location<span class="Special"> &lt;- </span>get-address *result, value:offset
+  *val<span class="Special"> &lt;- </span>copy x
+  next:address:address:list<span class="Special"> &lt;- </span>get-address *result, next:offset
+  *next<span class="Special"> &lt;- </span>copy in
+  <span class="muControl">reply</span> result
 ]
 
 <span class="Comment"># result:location &lt;- first in:address:list</span>
 <span class="muRecipe">recipe</span> first [
   <span class="Constant">local-scope</span>
   in:address:list<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
-  result:location<span class="Special"> &lt;- </span>get in:address:list/deref, value:offset
-  <span class="muControl">reply</span> result:location
+  result:location<span class="Special"> &lt;- </span>get *in, value:offset
+  <span class="muControl">reply</span> result
 ]
 
 <span class="Comment"># result:address:list &lt;- rest in:address:list</span>
 <span class="muRecipe">recipe</span> rest [
   <span class="Constant">local-scope</span>
   in:address:list<span class="Special"> &lt;- </span><span class="Constant">next-ingredient</span>
-  result:address:list<span class="Special"> &lt;- </span>get in:address:list/deref, next:offset
-  <span class="muControl">reply</span> result:address:list
+  result:address:list<span class="Special"> &lt;- </span>get *in, next:offset
+  <span class="muControl">reply</span> result
 ]
 
 <span class="muScenario">scenario</span> list-handling [
   run [
 <span class="CommentedCode">#?     $start-tracing #? 1</span>
-    1:address:list<span class="Special"> &lt;- </span>copy <span class="Constant">0:literal</span>
-    1:address:list<span class="Special"> &lt;- </span>push <span class="Constant">3:literal</span>, 1:address:list
-    1:address:list<span class="Special"> &lt;- </span>push <span class="Constant">4:literal</span>, 1:address:list
-    1:address:list<span class="Special"> &lt;- </span>push <span class="Constant">5:literal</span>, 1:address:list
-    2:number<span class="Special"> &lt;- </span>first 1:address:list
-    1:address:list<span class="Special"> &lt;- </span>rest 1:address:list
-    3:number<span class="Special"> &lt;- </span>first 1:address:list
-    1:address:list<span class="Special"> &lt;- </span>rest 1:address:list
-    4:number<span class="Special"> &lt;- </span>first 1:address:list
-    1:address:list<span class="Special"> &lt;- </span>rest 1:address:list
+    <span class="Constant">1</span>:address:list<span class="Special"> &lt;- </span>copy <span class="Constant">0</span>
+    <span class="Constant">1</span>:address:list<span class="Special"> &lt;- </span>push <span class="Constant">3</span>, <span class="Constant">1</span>:address:list
+    <span class="Constant">1</span>:address:list<span class="Special"> &lt;- </span>push <span class="Constant">4</span>, <span class="Constant">1</span>:address:list
+    <span class="Constant">1</span>:address:list<span class="Special"> &lt;- </span>push <span class="Constant">5</span>, <span class="Constant">1</span>:address:list
+    <span class="Constant">2</span>:number<span class="Special"> &lt;- </span>first <span class="Constant">1</span>:address:list
+    <span class="Constant">1</span>:address:list<span class="Special"> &lt;- </span>rest <span class="Constant">1</span>:address:list
+    <span class="Constant">3</span>:number<span class="Special"> &lt;- </span>first <span class="Constant">1</span>:address:list
+    <span class="Constant">1</span>:address:list<span class="Special"> &lt;- </span>rest <span class="Constant">1</span>:address:list
+    <span class="Constant">4</span>:number<span class="Special"> &lt;- </span>first <span class="Constant">1</span>:address:list
+    <span class="Constant">1</span>:address:list<span class="Special"> &lt;- </span>rest <span class="Constant">1</span>:address:list
   ]
   memory-should-contain [
-    1<span class="Special"> &lt;- </span>0  <span class="Comment"># empty to empty, dust to dust..</span>
-    2<span class="Special"> &lt;- </span>5
-    3<span class="Special"> &lt;- </span>4
-    4<span class="Special"> &lt;- </span>3
+    <span class="Constant">1</span><span class="Special"> &lt;- </span><span class="Constant">0</span>  <span class="Comment"># empty to empty, dust to dust..</span>
+    <span class="Constant">2</span><span class="Special"> &lt;- </span><span class="Constant">5</span>
+    <span class="Constant">3</span><span class="Special"> &lt;- </span><span class="Constant">4</span>
+    <span class="Constant">4</span><span class="Special"> &lt;- </span><span class="Constant">3</span>
   ]
 ]
 </pre>