diff options
Diffstat (limited to 'html/global.mu.html')
-rw-r--r-- | html/global.mu.html | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/html/global.mu.html b/html/global.mu.html index 6e2c0491..f94b215c 100644 --- a/html/global.mu.html +++ b/html/global.mu.html @@ -13,10 +13,9 @@ 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; } .Comment { color: #9090ff; } -.Constant { color: #00a0a0; } .Special { color: #ff6060; } +.Identifier { color: #804000; } --> </style> @@ -30,17 +29,17 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } <pre id='vimCodeElement'> <span class="Comment"># example program: creating and using global variables</span> -<span class="muRecipe">recipe</span> main [ +recipe main [ <span class="Comment"># allocate 5 locations for globals</span> - <span class="Constant">global-space</span>:address:array:location<span class="Special"> <- </span>new <span class="Constant">location:type</span>, <span class="Constant">5</span> + global-space:address:<span class="Identifier">array</span>:location<span class="Special"> <- </span><span class="Identifier">new</span> location:<span class="Identifier">type</span>, 5 <span class="Comment"># read to globals by using /space:global</span> - <span class="Special">1:number/space:global</span><span class="Special"> <- </span>copy <span class="Constant">3</span> + 1:number/space:global<span class="Special"> <- </span><span class="Identifier">copy</span> 3 foo ] -<span class="muRecipe">recipe</span> foo [ +recipe foo [ <span class="Comment"># ditto for writing to globals</span> - $print <span class="Special">1:number/space:global</span> + $<span class="Identifier">print</span> 1:number/space:global ] </pre> </body> |