diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-26 11:27:38 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-26 11:27:38 -0700 |
commit | 11f6618a19dd65e393bd9e6ef57e78c79f0126c8 (patch) | |
tree | 272c99661867cf4bd419f282cb7f9f887a5c381b /html/counters.mu.html | |
parent | bafc7192b2cc1d4a7d1cf4584e3c6c06d7ec979f (diff) | |
download | mu-11f6618a19dd65e393bd9e6ef57e78c79f0126c8.tar.gz |
1470
Diffstat (limited to 'html/counters.mu.html')
-rw-r--r-- | html/counters.mu.html | 14 |
1 files changed, 7 insertions, 7 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"> <- </span>new location:type, <span class="Constant">30:literal</span> n:number<span class="Special"> <- </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"> <- </span>new location:type, <span class="Constant">30:literal</span> <span class="Comment"># counter A</span> - a:address:space<span class="Special"> <- </span>init-counter <span class="Constant">34:literal</span> + a:address:array:location<span class="Special"> <- </span>init-counter <span class="Constant">34:literal</span> <span class="Comment"># counter B</span> - b:address:space<span class="Special"> <- </span>init-counter <span class="Constant">23:literal</span> + b:address:array:location<span class="Special"> <- </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"> <- </span>increment-counter b:address:space, <span class="Constant">2:literal</span> - a-value:number<span class="Special"> <- </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"> <- </span>increment-counter b:address:array:location, <span class="Constant">2:literal</span> + a-value:number<span class="Special"> <- </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> |