diff options
Diffstat (limited to 'html/channel.mu.html')
-rw-r--r-- | html/channel.mu.html | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/html/channel.mu.html b/html/channel.mu.html index df7d6b96..acae203d 100644 --- a/html/channel.mu.html +++ b/html/channel.mu.html @@ -15,13 +15,14 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color a { text-decoration: none; } a:hover { text-decoration: underline; } * { font-size: 12pt; font-size: 1em; } -.Delimiter { color: #800080; } -.muControl { color: #c0a020; } +.muRecipe { color: #ff8700; } .Special { color: #c00000; } +.Conceal { color: #4e4e4e; } +.Delimiter { color: #800080; } .Comment { color: #9090ff; } .Constant { color: #00a0a0; } .LineNr { color: #444444; } -.muRecipe { color: #ff8700; } +.muControl { color: #c0a020; } --> </style> @@ -65,14 +66,14 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="Comment"># n = 0</span> <span id="L8" class="LineNr"> 8 </span> n:char <span class="Special"><-</span> copy<span class="Constant"> 0</span> <span id="L9" class="LineNr"> 9 </span> <span class="Delimiter">{</span> -<span id="L10" class="LineNr">10 </span> done?:bool <span class="Special"><-</span> lesser-than n,<span class="Constant"> 5</span> -<span id="L11" class="LineNr">11 </span> <span class="muControl">break-unless</span> done? -<span id="L12" class="LineNr">12 </span> <span class="Comment"># other threads might get between these prints</span> -<span id="L13" class="LineNr">13 </span> $print <span class="Constant">[produce: ]</span>, n, <span class="Constant">[ </span> +<span id="L10" class="LineNr">10 </span> <span class="Conceal">¦</span> done?:bool <span class="Special"><-</span> lesser-than n,<span class="Constant"> 5</span> +<span id="L11" class="LineNr">11 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> done? +<span id="L12" class="LineNr">12 </span> <span class="Conceal">¦</span> <span class="Comment"># other threads might get between these prints</span> +<span id="L13" class="LineNr">13 </span> <span class="Conceal">¦</span> $print <span class="Constant">[produce: ]</span>, n, <span class="Constant">[ </span> <span id="L14" class="LineNr">14 </span><span class="Constant">]</span> -<span id="L15" class="LineNr">15 </span> sink <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> sink, n -<span id="L16" class="LineNr">16 </span> n <span class="Special"><-</span> add n,<span class="Constant"> 1</span> -<span id="L17" class="LineNr">17 </span> <span class="muControl">loop</span> +<span id="L15" class="LineNr">15 </span> <span class="Conceal">¦</span> sink <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> sink, n +<span id="L16" class="LineNr">16 </span> <span class="Conceal">¦</span> n <span class="Special"><-</span> add n,<span class="Constant"> 1</span> +<span id="L17" class="LineNr">17 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span id="L18" class="LineNr">18 </span> <span class="Delimiter">}</span> <span id="L19" class="LineNr">19 </span> close sink <span id="L20" class="LineNr">20 </span>] @@ -82,13 +83,13 @@ if ('onhashchange' in window) { <span id="L24" class="LineNr">24 </span> <span class="Constant">local-scope</span> <span id="L25" class="LineNr">25 </span> <span class="Constant">load-ingredients</span> <span id="L26" class="LineNr">26 </span> <span class="Delimiter">{</span> -<span id="L27" class="LineNr">27 </span> <span class="Comment"># read an integer from the channel</span> -<span id="L28" class="LineNr">28 </span> n:char, eof?:bool, source <span class="Special"><-</span> read source -<span id="L29" class="LineNr">29 </span> <span class="muControl">break-if</span> eof? -<span id="L30" class="LineNr">30 </span> <span class="Comment"># other threads might get between these prints</span> -<span id="L31" class="LineNr">31 </span> $print <span class="Constant">[consume: ]</span>, n:char, <span class="Constant">[ </span> +<span id="L27" class="LineNr">27 </span> <span class="Conceal">¦</span> <span class="Comment"># read an integer from the channel</span> +<span id="L28" class="LineNr">28 </span> <span class="Conceal">¦</span> n:char, eof?:bool, source <span class="Special"><-</span> read source +<span id="L29" class="LineNr">29 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> eof? +<span id="L30" class="LineNr">30 </span> <span class="Conceal">¦</span> <span class="Comment"># other threads might get between these prints</span> +<span id="L31" class="LineNr">31 </span> <span class="Conceal">¦</span> $print <span class="Constant">[consume: ]</span>, n:char, <span class="Constant">[ </span> <span id="L32" class="LineNr">32 </span><span class="Constant">]</span> -<span id="L33" class="LineNr">33 </span> <span class="muControl">loop</span> +<span id="L33" class="LineNr">33 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span id="L34" class="LineNr">34 </span> <span class="Delimiter">}</span> <span id="L35" class="LineNr">35 </span>] <span id="L36" class="LineNr">36 </span> |