diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-04-21 08:28:00 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-04-21 08:28:00 -0700 |
commit | a8fb537a88fdbe77cdcbaa05ee28d1cad94550da (patch) | |
tree | d0fad5f8da140435dcf05b631a4b3f315e0c1f86 /html/shell/grapheme-stack.mu.html | |
parent | d27994a9d73f970a7b54ec71f4ae457da3734daa (diff) | |
download | mu-a8fb537a88fdbe77cdcbaa05ee28d1cad94550da.tar.gz |
.
Diffstat (limited to 'html/shell/grapheme-stack.mu.html')
-rw-r--r-- | html/shell/grapheme-stack.mu.html | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/html/shell/grapheme-stack.mu.html b/html/shell/grapheme-stack.mu.html index 2ce16b42..a42cf528 100644 --- a/html/shell/grapheme-stack.mu.html +++ b/html/shell/grapheme-stack.mu.html @@ -7,11 +7,11 @@ <meta name="plugin-version" content="vim8.1_v1"> <meta name="syntax" content="none"> <meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> -<meta name="colorscheme" content="minimal-light"> +<meta name="colorscheme" content="minimal-dark"> <style type="text/css"> <!-- -pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #c6c6c6; } -body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; } +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #a8a8a8; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #a8a8a8; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } @@ -142,9 +142,9 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span> <span id="L84" class="LineNr"> 84 </span><span class="muComment"># dump stack to screen from bottom to top</span> <span id="L85" class="LineNr"> 85 </span><span class="muComment"># colors hardcoded</span> -<span id="L86" class="LineNr"> 86 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L86'>render-stack-from-bottom-wrapping-right-then-down</a></span> <a href='../500text-screen.mu.html#L9'>screen</a>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='gap-buffer.mu.html#L644'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">ecx</span>: int <span class="Delimiter">{</span> +<span id="L86" class="LineNr"> 86 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L86'>render-stack-from-bottom-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='gap-buffer.mu.html#L668'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">ecx</span>: int <span class="Delimiter">{</span> <span id="L87" class="LineNr"> 87 </span> <span class="PreProc">var</span> self/<span class="Constant">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> matching-open-paren-index/<span class="Constant">edx</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L424'>get-matching-open-paren-index</a> self, <a href='gap-buffer.mu.html#L644'>highlight-matching-open-paren?</a>, open-paren-depth +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> matching-open-paren-index/<span class="Constant">edx</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L424'>get-matching-open-paren-index</a> self, <a href='gap-buffer.mu.html#L668'>highlight-matching-open-paren?</a>, open-paren-depth <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> data-ah/<span class="Constant">edi</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> _data/<span class="Constant">eax</span>: (addr array grapheme) <span class="Special"><-</span> <a href='../120allocate.subx.html#L226'>lookup</a> *data-ah <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> data/<span class="Constant">edi</span>: (addr array grapheme) <span class="Special"><-</span> copy _data @@ -164,7 +164,7 @@ if ('onhashchange' in window) { <span id="L105" class="LineNr">105 </span> <span class="PreProc">break-if-!=</span> <span id="L106" class="LineNr">106 </span> copy-to fg, <span class="Constant">0xf</span>/highlight <span id="L107" class="LineNr">107 </span> <span class="Delimiter">}</span> -<span id="L108" class="LineNr">108 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L141'>render-grapheme</a> <a href='../500text-screen.mu.html#L9'>screen</a>, *g, xmin, ymin, xmax, ymax, x, y, fg, <span class="Constant">0</span>/bg +<span id="L108" class="LineNr">108 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L141'>render-grapheme</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *g, xmin, ymin, xmax, ymax, x, y, fg, <span class="Constant">0</span>/bg <span id="L109" class="LineNr">109 </span> <span class="Delimiter">}</span> <span id="L110" class="LineNr">110 </span> i <span class="Special"><-</span> increment <span id="L111" class="LineNr">111 </span> <span class="PreProc">loop</span> @@ -173,21 +173,21 @@ if ('onhashchange' in window) { <span id="L114" class="LineNr">114 </span><span class="Delimiter">}</span> <span id="L115" class="LineNr">115 </span> <span id="L116" class="LineNr">116 </span><span class="muComment"># helper for small words</span> -<span id="L117" class="LineNr">117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a></span> <a href='../500text-screen.mu.html#L9'>screen</a>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, <a href='gap-buffer.mu.html#L644'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span> +<span id="L117" class="LineNr">117 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, <a href='gap-buffer.mu.html#L668'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span> <span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> _width/<span class="Constant">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> _height/<span class="Constant">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L120" class="LineNr">120 </span> _width, _height <span class="Special"><-</span> <a href='../500text-screen.mu.html#L50'>screen-size</a> <a href='../500text-screen.mu.html#L9'>screen</a> +<span id="L120" class="LineNr">120 </span> _width, _height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L70'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> width/<span class="Constant">edx</span>: int <span class="Special"><-</span> copy _width <span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> height/<span class="Constant">ebx</span>: int <span class="Special"><-</span> copy _height <span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> x2/<span class="Constant">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L124" class="LineNr">124 </span> <span class="PreProc">var</span> y2/<span class="Constant">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L125" class="LineNr">125 </span> x2, y2 <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L86'>render-stack-from-bottom-wrapping-right-then-down</a> <a href='../500text-screen.mu.html#L9'>screen</a>, self, x, y, width, height, x, y, <a href='gap-buffer.mu.html#L644'>highlight-matching-open-paren?</a>, open-paren-depth +<span id="L125" class="LineNr">125 </span> x2, y2 <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L86'>render-stack-from-bottom-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, x, y, width, height, x, y, <a href='gap-buffer.mu.html#L668'>highlight-matching-open-paren?</a>, open-paren-depth <span id="L126" class="LineNr">126 </span> <span class="PreProc">return</span> x2 <span class="muComment"># y2? yolo</span> <span id="L127" class="LineNr">127 </span><span class="Delimiter">}</span> <span id="L128" class="LineNr">128 </span> <span id="L129" class="LineNr">129 </span><span class="muComment"># dump stack to screen from top to bottom</span> <span id="L130" class="LineNr">130 </span><span class="muComment"># optionally render a 'cursor' with the top grapheme</span> -<span id="L131" class="LineNr">131 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L131'>render-stack-from-top-wrapping-right-then-down</a></span> <a href='../500text-screen.mu.html#L9'>screen</a>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">ecx</span>: int <span class="Delimiter">{</span> +<span id="L131" class="LineNr">131 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L131'>render-stack-from-top-wrapping-right-then-down</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), _self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">ecx</span>: int <span class="Delimiter">{</span> <span id="L132" class="LineNr">132 </span> <span class="PreProc">var</span> self/<span class="Constant">esi</span>: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L133" class="LineNr">133 </span> <span class="PreProc">var</span> matching-close-paren-index/<span class="Constant">edx</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L368'>get-matching-close-paren-index</a> self, render-cursor? <span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> data-ah/<span class="Constant">eax</span>: (addr handle array grapheme) <span class="Special"><-</span> get self, data @@ -205,7 +205,7 @@ if ('onhashchange' in window) { <span id="L146" class="LineNr">146 </span> compare i, <span class="Constant">0</span> <span id="L147" class="LineNr">147 </span> <span class="PreProc">break-if-<</span> <span id="L148" class="LineNr">148 </span> <span class="PreProc">var</span> g/<span class="Constant">esi</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L149" class="LineNr">149 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L141'>render-grapheme</a> <a href='../500text-screen.mu.html#L9'>screen</a>, *g, xmin, ymin, xmax, ymax, x, y, <span class="Constant">3</span>/fg=cyan, <span class="Constant">7</span>/bg=cursor +<span id="L149" class="LineNr">149 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L141'>render-grapheme</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *g, xmin, ymin, xmax, ymax, x, y, <span class="Constant">3</span>/fg=cyan, <span class="Constant">7</span>/bg=cursor <span id="L150" class="LineNr">150 </span> i <span class="Special"><-</span> decrement <span id="L151" class="LineNr">151 </span> <span class="Delimiter">}</span> <span id="L152" class="LineNr">152 </span> <span class="muComment"># remaining iterations</span> @@ -222,7 +222,7 @@ if ('onhashchange' in window) { <span id="L163" class="LineNr">163 </span> <span class="Delimiter">}</span> <span id="L164" class="LineNr">164 </span> <span class="muComment">#</span> <span id="L165" class="LineNr">165 </span> <span class="PreProc">var</span> g/<span class="Constant">esi</span>: (addr grapheme) <span class="Special"><-</span> index data, i -<span id="L166" class="LineNr">166 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L141'>render-grapheme</a> <a href='../500text-screen.mu.html#L9'>screen</a>, *g, xmin, ymin, xmax, ymax, x, y, fg, <span class="Constant">0</span>/bg=cursor +<span id="L166" class="LineNr">166 </span> x, y <span class="Special"><-</span> <a href='../501draw-text.mu.html#L141'>render-grapheme</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, *g, xmin, ymin, xmax, ymax, x, y, fg, <span class="Constant">0</span>/bg=cursor <span id="L167" class="LineNr">167 </span> i <span class="Special"><-</span> decrement <span id="L168" class="LineNr">168 </span> <span class="PreProc">loop</span> <span id="L169" class="LineNr">169 </span> <span class="Delimiter">}</span> @@ -230,15 +230,15 @@ if ('onhashchange' in window) { <span id="L171" class="LineNr">171 </span><span class="Delimiter">}</span> <span id="L172" class="LineNr">172 </span> <span id="L173" class="LineNr">173 </span><span class="muComment"># helper for small words</span> -<span id="L174" class="LineNr">174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a></span> <a href='../500text-screen.mu.html#L9'>screen</a>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span> +<span id="L174" class="LineNr">174 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), self: (addr <a href='grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span> <span id="L175" class="LineNr">175 </span> <span class="PreProc">var</span> _width/<span class="Constant">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> _height/<span class="Constant">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L177" class="LineNr">177 </span> _width, _height <span class="Special"><-</span> <a href='../500text-screen.mu.html#L50'>screen-size</a> <a href='../500text-screen.mu.html#L9'>screen</a> +<span id="L177" class="LineNr">177 </span> _width, _height <span class="Special"><-</span> <a href='../500fake-screen.mu.html#L70'>screen-size</a> <a href='../500fake-screen.mu.html#L14'>screen</a> <span id="L178" class="LineNr">178 </span> <span class="PreProc">var</span> width/<span class="Constant">edx</span>: int <span class="Special"><-</span> copy _width <span id="L179" class="LineNr">179 </span> <span class="PreProc">var</span> height/<span class="Constant">ebx</span>: int <span class="Special"><-</span> copy _height <span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> x2/<span class="Constant">eax</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L181" class="LineNr">181 </span> <span class="PreProc">var</span> y2/<span class="Constant">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> -<span id="L182" class="LineNr">182 </span> x2, y2 <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L131'>render-stack-from-top-wrapping-right-then-down</a> <a href='../500text-screen.mu.html#L9'>screen</a>, self, x, y, width, height, x, y, render-cursor? +<span id="L182" class="LineNr">182 </span> x2, y2 <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L131'>render-stack-from-top-wrapping-right-then-down</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, self, x, y, width, height, x, y, render-cursor? <span id="L183" class="LineNr">183 </span> <span class="PreProc">return</span> x2 <span class="muComment"># y2? yolo</span> <span id="L184" class="LineNr">184 </span><span class="Delimiter">}</span> <span id="L185" class="LineNr">185 </span> @@ -254,24 +254,24 @@ if ('onhashchange' in window) { <span id="L195" class="LineNr">195 </span> g <span class="Special"><-</span> copy <span class="Constant">0x63</span>/c <span id="L196" class="LineNr">196 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L197" class="LineNr">197 </span> <span class="muComment"># setup: screen</span> -<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500text-screen.mu.html#L9'>screen</a> -<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> <a href='../500text-screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L200" class="LineNr">200 </span> <a href='../500text-screen.mu.html#L23'>initialize-screen</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span> +<span id="L198" class="LineNr">198 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L199" class="LineNr">199 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L200" class="LineNr">200 </span> <a href='../500fake-screen.mu.html#L31'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L201" class="LineNr">201 </span> <span class="muComment">#</span> -<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0</span>/no-highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth -<span id="L203" class="LineNr">203 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from bottom"</span> +<span id="L202" class="LineNr">202 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">0</span>/y, <span class="Constant">0</span>/no-highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth +<span id="L203" class="LineNr">203 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from bottom"</span> <span id="L204" class="LineNr">204 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from bottom: result"</span> -<span id="L205" class="LineNr">205 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from bottom: bg"</span> +<span id="L205" class="LineNr">205 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">0</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from bottom: bg"</span> <span id="L206" class="LineNr">206 </span> <span class="muComment">#</span> -<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">1</span>/y, <span class="Constant">0</span>/cursor=false -<span id="L208" class="LineNr">208 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top without cursor"</span> +<span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">1</span>/y, <span class="Constant">0</span>/cursor=false +<span id="L208" class="LineNr">208 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top without cursor"</span> <span id="L209" class="LineNr">209 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top without cursor: result"</span> -<span id="L210" class="LineNr">210 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top without cursor: bg"</span> +<span id="L210" class="LineNr">210 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top without cursor: bg"</span> <span id="L211" class="LineNr">211 </span> <span class="muComment">#</span> -<span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true -<span id="L213" class="LineNr">213 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top with cursor"</span> +<span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true +<span id="L213" class="LineNr">213 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top with cursor"</span> <span id="L214" class="LineNr">214 </span> <a href='../502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top with cursor: result"</span> -<span id="L215" class="LineNr">215 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top with cursor: bg"</span> +<span id="L215" class="LineNr">215 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L186'>test-render-grapheme-stack</a> from top with cursor: bg"</span> <span id="L216" class="LineNr">216 </span><span class="Delimiter">}</span> <span id="L217" class="LineNr">217 </span> <span id="L218" class="LineNr">218 </span><span class="PreProc">fn</span> <span class="muTest"><a href='grapheme-stack.mu.html#L218'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a></span> <span class="Delimiter">{</span> @@ -286,14 +286,14 @@ if ('onhashchange' in window) { <span id="L227" class="LineNr">227 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren <span id="L228" class="LineNr">228 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L229" class="LineNr">229 </span> <span class="muComment"># setup: screen</span> -<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500text-screen.mu.html#L9'>screen</a> -<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> <a href='../500text-screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L232" class="LineNr">232 </span> <a href='../500text-screen.mu.html#L23'>initialize-screen</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span> +<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L232" class="LineNr">232 </span> <a href='../500fake-screen.mu.html#L31'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L233" class="LineNr">233 </span> <span class="muComment">#</span> -<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true -<span id="L235" class="LineNr">235 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-close-paren"</span> -<span id="L236" class="LineNr">236 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L218'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: cursor"</span> -<span id="L237" class="LineNr">237 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ) "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L218'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: matching paren"</span> +<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true +<span id="L235" class="LineNr">235 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-close-paren"</span> +<span id="L236" class="LineNr">236 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L218'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: cursor"</span> +<span id="L237" class="LineNr">237 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ) "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L218'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: matching paren"</span> <span id="L238" class="LineNr">238 </span><span class="Delimiter">}</span> <span id="L239" class="LineNr">239 </span> <span id="L240" class="LineNr">240 </span><span class="PreProc">fn</span> <span class="muTest"><a href='grapheme-stack.mu.html#L240'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a></span> <span class="Delimiter">{</span> @@ -320,14 +320,14 @@ if ('onhashchange' in window) { <span id="L261" class="LineNr">261 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren <span id="L262" class="LineNr">262 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L263" class="LineNr">263 </span> <span class="muComment"># setup: screen</span> -<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500text-screen.mu.html#L9'>screen</a> -<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> <a href='../500text-screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L266" class="LineNr">266 </span> <a href='../500text-screen.mu.html#L23'>initialize-screen</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span> +<span id="L264" class="LineNr">264 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L265" class="LineNr">265 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L266" class="LineNr">266 </span> <a href='../500fake-screen.mu.html#L31'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L267" class="LineNr">267 </span> <span class="muComment">#</span> -<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true -<span id="L269" class="LineNr">269 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(a (b)) c "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-close-paren-2"</span> -<span id="L270" class="LineNr">270 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L240'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: cursor"</span> -<span id="L271" class="LineNr">271 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ) "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L240'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: matching paren"</span> +<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L174'>render-stack-from-top</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true +<span id="L269" class="LineNr">269 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(a (b)) c "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-close-paren-2"</span> +<span id="L270" class="LineNr">270 </span> <a href='../504test-screen.mu.html#L251'>check-background-color-in-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">7</span>/bg=cursor, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L240'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: cursor"</span> +<span id="L271" class="LineNr">271 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ) "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L240'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: matching paren"</span> <span id="L272" class="LineNr">272 </span><span class="Delimiter">}</span> <span id="L273" class="LineNr">273 </span> <span id="L274" class="LineNr">274 </span><span class="PreProc">fn</span> <span class="muTest"><a href='grapheme-stack.mu.html#L274'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a></span> <span class="Delimiter">{</span> @@ -342,13 +342,13 @@ if ('onhashchange' in window) { <span id="L283" class="LineNr">283 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren <span id="L284" class="LineNr">284 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L285" class="LineNr">285 </span> <span class="muComment"># setup: screen</span> -<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500text-screen.mu.html#L9'>screen</a> -<span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> <a href='../500text-screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L288" class="LineNr">288 </span> <a href='../500text-screen.mu.html#L23'>initialize-screen</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span> +<span id="L286" class="LineNr">286 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L288" class="LineNr">288 </span> <a href='../500fake-screen.mu.html#L31'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L289" class="LineNr">289 </span> <span class="muComment">#</span> -<span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth -<span id="L291" class="LineNr">291 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end"</span> -<span id="L292" class="LineNr">292 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">"( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L274'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a>: matching paren"</span> +<span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth +<span id="L291" class="LineNr">291 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end"</span> +<span id="L292" class="LineNr">292 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">"( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L274'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a>: matching paren"</span> <span id="L293" class="LineNr">293 </span><span class="Delimiter">}</span> <span id="L294" class="LineNr">294 </span> <span id="L295" class="LineNr">295 </span><span class="PreProc">fn</span> <span class="muTest"><a href='grapheme-stack.mu.html#L295'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a></span> <span class="Delimiter">{</span> @@ -369,13 +369,13 @@ if ('onhashchange' in window) { <span id="L310" class="LineNr">310 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren <span id="L311" class="LineNr">311 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L312" class="LineNr">312 </span> <span class="muComment"># setup: screen</span> -<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500text-screen.mu.html#L9'>screen</a> -<span id="L314" class="LineNr">314 </span> <span class="PreProc">var</span> <a href='../500text-screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L315" class="LineNr">315 </span> <a href='../500text-screen.mu.html#L23'>initialize-screen</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span> +<span id="L313" class="LineNr">313 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L314" class="LineNr">314 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L315" class="LineNr">315 </span> <a href='../500fake-screen.mu.html#L31'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L316" class="LineNr">316 </span> <span class="muComment">#</span> -<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth -<span id="L318" class="LineNr">318 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b)) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2"</span> -<span id="L319" class="LineNr">319 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L295'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a>: matching paren"</span> +<span id="L317" class="LineNr">317 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">1</span>/open-paren-depth +<span id="L318" class="LineNr">318 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b)) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2"</span> +<span id="L319" class="LineNr">319 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L295'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a>: matching paren"</span> <span id="L320" class="LineNr">320 </span><span class="Delimiter">}</span> <span id="L321" class="LineNr">321 </span> <span id="L322" class="LineNr">322 </span><span class="PreProc">fn</span> <span class="muTest"><a href='grapheme-stack.mu.html#L322'>test-render-grapheme-stack-while-highlighting-matching-open-paren</a></span> <span class="Delimiter">{</span> @@ -388,13 +388,13 @@ if ('onhashchange' in window) { <span id="L329" class="LineNr">329 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b <span id="L330" class="LineNr">330 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L331" class="LineNr">331 </span> <span class="muComment"># setup: screen</span> -<span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500text-screen.mu.html#L9'>screen</a> -<span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> <a href='../500text-screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L334" class="LineNr">334 </span> <a href='../500text-screen.mu.html#L23'>initialize-screen</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span> +<span id="L332" class="LineNr">332 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L333" class="LineNr">333 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L334" class="LineNr">334 </span> <a href='../500fake-screen.mu.html#L31'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L335" class="LineNr">335 </span> <span class="muComment">#</span> -<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth -<span id="L337" class="LineNr">337 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren"</span> -<span id="L338" class="LineNr">338 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">"( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L322'>test-render-grapheme-stack-while-highlighting-matching-open-paren</a>: matching paren"</span> +<span id="L336" class="LineNr">336 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth +<span id="L337" class="LineNr">337 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren"</span> +<span id="L338" class="LineNr">338 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">"( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L322'>test-render-grapheme-stack-while-highlighting-matching-open-paren</a>: matching paren"</span> <span id="L339" class="LineNr">339 </span><span class="Delimiter">}</span> <span id="L340" class="LineNr">340 </span> <span id="L341" class="LineNr">341 </span><span class="PreProc">fn</span> <span class="muTest"><a href='grapheme-stack.mu.html#L341'>test-render-grapheme-stack-while-highlighting-matching-open-paren-2</a></span> <span class="Delimiter">{</span> @@ -413,13 +413,13 @@ if ('onhashchange' in window) { <span id="L354" class="LineNr">354 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren <span id="L355" class="LineNr">355 </span> <a href='grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L356" class="LineNr">356 </span> <span class="muComment"># setup: screen</span> -<span id="L357" class="LineNr">357 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500text-screen.mu.html#L9'>screen</a> -<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> <a href='../500text-screen.mu.html#L9'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500text-screen.mu.html#L9'>screen</a>) <span class="Special"><-</span> address screen-on-stack -<span id="L359" class="LineNr">359 </span> <a href='../500text-screen.mu.html#L23'>initialize-screen</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span> +<span id="L357" class="LineNr">357 </span> <span class="PreProc">var</span> screen-on-stack: <a href='../500fake-screen.mu.html#L14'>screen</a> +<span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> <a href='../500fake-screen.mu.html#L14'>screen</a>/<span class="Constant">esi</span>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>) <span class="Special"><-</span> address screen-on-stack +<span id="L359" class="LineNr">359 </span> <a href='../500fake-screen.mu.html#L31'>initialize-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L360" class="LineNr">360 </span> <span class="muComment">#</span> -<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500text-screen.mu.html#L9'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth -<span id="L362" class="LineNr">362 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-2"</span> -<span id="L363" class="LineNr">363 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500text-screen.mu.html#L9'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L341'>test-render-grapheme-stack-while-highlighting-matching-open-paren-2</a>: matching paren"</span> +<span id="L361" class="LineNr">361 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: int <span class="Special"><-</span> <a href='grapheme-stack.mu.html#L117'>render-stack-from-bottom</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/highlight-matching-open-paren, <span class="Constant">0</span>/open-paren-depth +<span id="L362" class="LineNr">362 </span> <a href='../504test-screen.mu.html#L7'>check-screen-row</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b) "</span>, <span class="Constant">"F - test-render-grapheme-stack-while-highlighting-matching-open-paren-2"</span> +<span id="L363" class="LineNr">363 </span> <a href='../504test-screen.mu.html#L65'>check-screen-row-in-color</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">0xf</span>/fg=white, <span class="Constant">2</span>/y, <span class="Constant">" ( "</span>, <span class="Constant">"F - <a href='grapheme-stack.mu.html#L341'>test-render-grapheme-stack-while-highlighting-matching-open-paren-2</a>: matching paren"</span> <span id="L364" class="LineNr">364 </span><span class="Delimiter">}</span> <span id="L365" class="LineNr">365 </span> <span id="L366" class="LineNr">366 </span><span class="muComment"># return the index of the matching close-paren of the grapheme at cursor (top of stack)</span> |