about summary refs log tree commit diff stats
path: root/html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-26 11:27:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-26 11:27:38 -0700
commit11f6618a19dd65e393bd9e6ef57e78c79f0126c8 (patch)
tree272c99661867cf4bd419f282cb7f9f887a5c381b /html
parentbafc7192b2cc1d4a7d1cf4584e3c6c06d7ec979f (diff)
downloadmu-11f6618a19dd65e393bd9e6ef57e78c79f0126c8.tar.gz
1470
Diffstat (limited to 'html')
-rw-r--r--html/counters.mu.html14
-rw-r--r--html/factorial.mu.html6
2 files changed, 10 insertions, 10 deletions
diff --git a/html/counters.mu.html b/html/counters.mu.html
index 8cc28817..2baae9e4 100644
--- a/html/counters.mu.html
+++ b/html/counters.mu.html
@@ -2,7 +2,7 @@
 <html>
 <head>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
-<title>counters.mu</title>
+<title>Mu - counters.mu</title>
 <meta name="Generator" content="Vim/7.4">
 <meta name="plugin-version" content="vim7.4_v1">
 <meta name="syntax" content="none">
@@ -35,7 +35,7 @@ body { font-family: monospace; color: #d0d0d0; background-color: #000000; }
 <span class="muRecipe">recipe</span> init-counter [
   <span class="Identifier">default-space</span>:address:array:location<span class="Special"> &lt;- </span>new location:type, <span class="Constant">30:literal</span>
   n:number<span class="Special"> &lt;- </span><span class="Identifier">next-ingredient</span>
-  <span class="Identifier">reply</span> <span class="Identifier">default-space</span>:address:space
+  <span class="Identifier">reply</span> <span class="Identifier">default-space</span>:address:array:location
 ]
 
 <span class="muRecipe">recipe</span> increment-counter [
@@ -49,13 +49,13 @@ body { font-family: monospace; color: #d0d0d0; background-color: #000000; }
 <span class="muRecipe">recipe</span> main [
   <span class="Identifier">default-space</span>:address:array:location<span class="Special"> &lt;- </span>new location:type, <span class="Constant">30:literal</span>
   <span class="Comment"># counter A</span>
-  a:address:space<span class="Special"> &lt;- </span>init-counter <span class="Constant">34:literal</span>
+  a:address:array:location<span class="Special"> &lt;- </span>init-counter <span class="Constant">34:literal</span>
   <span class="Comment"># counter B</span>
-  b:address:space<span class="Special"> &lt;- </span>init-counter <span class="Constant">23:literal</span>
+  b:address:array:location<span class="Special"> &lt;- </span>init-counter <span class="Constant">23:literal</span>
   <span class="Comment"># increment both by 2 but in different ways</span>
-  increment-counter a:address:space, <span class="Constant">1:literal</span>
-  b-value:number<span class="Special"> &lt;- </span>increment-counter b:address:space, <span class="Constant">2:literal</span>
-  a-value:number<span class="Special"> &lt;- </span>increment-counter a:address:space, <span class="Constant">1:literal</span>
+  increment-counter a:address:array:location, <span class="Constant">1:literal</span>
+  b-value:number<span class="Special"> &lt;- </span>increment-counter b:address:array:location, <span class="Constant">2:literal</span>
+  a-value:number<span class="Special"> &lt;- </span>increment-counter a:address:array:location, <span class="Constant">1:literal</span>
   <span class="Comment"># check results</span>
  <span class="Identifier"> $print</span> <span class="Constant">[Contents of counters</span>
 <span class="Constant">]</span>
diff --git a/html/factorial.mu.html b/html/factorial.mu.html
index d5d965e6..c7c7723b 100644
--- a/html/factorial.mu.html
+++ b/html/factorial.mu.html
@@ -2,7 +2,7 @@
 <html>
 <head>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
-<title>factorial.mu</title>
+<title>Mu - factorial.mu</title>
 <meta name="Generator" content="Vim/7.4">
 <meta name="plugin-version" content="vim7.4_v1">
 <meta name="syntax" content="none">
@@ -34,7 +34,7 @@ body { font-family: monospace; color: #d0d0d0; background-color: #000000; }
 <span class="Comment"># example program: compute the factorial of 5</span>
 
 <span class="muRecipe">recipe</span> main [
-  <span class="Identifier">default-space</span>:address:space<span class="Special"> &lt;- </span>new location:type, <span class="Constant">30:literal</span>
+  <span class="Identifier">default-space</span>:address:array:location<span class="Special"> &lt;- </span>new location:type, <span class="Constant">30:literal</span>
   x:number<span class="Special"> &lt;- </span>factorial <span class="Constant">5:literal</span>
  <span class="Identifier"> $print</span> <span class="Constant">[result: ]</span>, x:number, <span class="Constant">[ </span>
 <span class="Constant">]</span>
@@ -61,7 +61,7 @@ body { font-family: monospace; color: #d0d0d0; background-color: #000000; }
   run [
     1:number<span class="Special"> &lt;- </span>factorial <span class="Constant">5:literal</span>
   ]
-  memory should contain [
+  memory-should-contain [
     1<span class="Special"> &lt;- </span>120
   ]
 ]