diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-09-06 16:35:46 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-09-06 16:35:46 -0700 |
commit | 0e4a335edc7d4e584924fd6b298156e45d2626c8 (patch) | |
tree | 4bde00176d6d00b72462e856974fecd4411ef025 /html/callcc.mu.html | |
parent | 3cf4cc43f2622816777c22c49c32e5159574a1d3 (diff) | |
download | mu-0e4a335edc7d4e584924fd6b298156e45d2626c8.tar.gz |
2175
Diffstat (limited to 'html/callcc.mu.html')
-rw-r--r-- | html/callcc.mu.html | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/html/callcc.mu.html b/html/callcc.mu.html index 20ebd83c..805a182e 100644 --- a/html/callcc.mu.html +++ b/html/callcc.mu.html @@ -13,11 +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; } -.muControl { color: #c0a020; } +.Identifier { color: #804000; } --> </style> @@ -31,20 +29,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> -<span class="muRecipe">recipe</span> main [ +recipe main [ c:continuation<span class="Special"> <- </span>f - <span class="muControl">continue-from</span> c <span class="Comment"># <-- ..when you hit this</span> + continue-from c <span class="Comment"># <-- ..when you hit this</span> ] -<span class="muRecipe">recipe</span> f [ +recipe f [ c:continuation<span class="Special"> <- </span>g - <span class="muControl">reply</span> c + reply c ] -<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> +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> ] </pre> </body> |