diff options
Diffstat (limited to 'html/callcc.mu.html')
-rw-r--r-- | html/callcc.mu.html | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/html/callcc.mu.html b/html/callcc.mu.html index 805a182e..20ebd83c 100644 --- a/html/callcc.mu.html +++ b/html/callcc.mu.html @@ -13,9 +13,11 @@ 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; } +.muControl { color: #c0a020; } --> </style> @@ -29,20 +31,20 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } <pre id='vimCodeElement'> <span class="Comment"># example program: saving and reusing call-stacks or continuations</span> -recipe main [ +<span class="muRecipe">recipe</span> main [ c:continuation<span class="Special"> <- </span>f - continue-from c <span class="Comment"># <-- ..when you hit this</span> + <span class="muControl">continue-from</span> c <span class="Comment"># <-- ..when you hit this</span> ] -recipe f [ +<span class="muRecipe">recipe</span> f [ c:continuation<span class="Special"> <- </span>g - reply c + <span class="muControl">reply</span> c ] -recipe g [ - c:continuation<span class="Special"> <- </span>current-continuation <span class="Comment"># <-- loop back to here</span> - $<span class="Identifier">print</span> 1 - reply c <span class="Comment"># threaded through unmodified after first iteration</span> +<span class="muRecipe">recipe</span> g [ + c:continuation<span class="Special"> <- </span><span class="muControl">current-continuation</span> <span class="Comment"># <-- loop back to here</span> + $print <span class="Constant">1</span> + <span class="muControl">reply</span> c <span class="Comment"># threaded through unmodified after first iteration</span> ] </pre> </body> |