diff options
Diffstat (limited to 'html/513grapheme-stack.mu.html')
-rw-r--r-- | html/513grapheme-stack.mu.html | 230 |
1 files changed, 115 insertions, 115 deletions
diff --git a/html/513grapheme-stack.mu.html b/html/513grapheme-stack.mu.html index bde73e65..8476f08d 100644 --- a/html/513grapheme-stack.mu.html +++ b/html/513grapheme-stack.mu.html @@ -64,27 +64,27 @@ if ('onhashchange' in window) { <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="muComment"># code-point-utf8 stacks are the smallest unit of editable text</span> <span id="L2" class="LineNr"> 2 </span> -<span id="L3" class="LineNr"> 3 </span><span class="PreProc">type</span> <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> <span class="Delimiter">{</span> +<span id="L3" class="LineNr"> 3 </span><span class="PreProc">type</span> <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> <span class="Delimiter">{</span> <span id="L4" class="LineNr"> 4 </span> data: (handle array code-point-utf8) <span id="L5" class="LineNr"> 5 </span> top: int <span id="L6" class="LineNr"> 6 </span><span class="Delimiter">}</span> <span id="L7" class="LineNr"> 7 </span> -<span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), n: int <span class="Delimiter">{</span> -<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L8" class="LineNr"> 8 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), n: int <span class="Delimiter">{</span> +<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L10" class="LineNr"> 10 </span> <span class="PreProc">var</span> d/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L11" class="LineNr"> 11 </span> populate d, n <span id="L12" class="LineNr"> 12 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L13" class="LineNr"> 13 </span> copy-to *top, <span class="Constant">0</span> <span id="L14" class="LineNr"> 14 </span><span class="Delimiter">}</span> <span id="L15" class="LineNr"> 15 </span> -<span id="L16" class="LineNr"> 16 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L16'>clear-code-point-utf8-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Delimiter">{</span> -<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L16" class="LineNr"> 16 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L16'>clear-grapheme-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Delimiter">{</span> +<span id="L17" class="LineNr"> 17 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L18" class="LineNr"> 18 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L19" class="LineNr"> 19 </span> copy-to *top, <span class="Constant">0</span> <span id="L20" class="LineNr"> 20 </span><span class="Delimiter">}</span> <span id="L21" class="LineNr"> 21 </span> -<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L22'>code-point-utf8-stack-empty?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L22'>grapheme-stack-empty?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L25" class="LineNr"> 25 </span> compare *top, <span class="Constant">0</span> <span id="L26" class="LineNr"> 26 </span> <span class="Delimiter">{</span> @@ -94,14 +94,14 @@ if ('onhashchange' in window) { <span id="L30" class="LineNr"> 30 </span> <span class="PreProc">return</span> <span class="Constant">0</span>/false <span id="L31" class="LineNr"> 31 </span><span class="Delimiter">}</span> <span id="L32" class="LineNr"> 32 </span> -<span id="L33" class="LineNr"> 33 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L33'>code-point-utf8-stack-length</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> -<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L33" class="LineNr"> 33 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L33'>grapheme-stack-length</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L34" class="LineNr"> 34 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> top/eax: (addr int) <span class="Special"><-</span> get self, top <span id="L36" class="LineNr"> 36 </span> <span class="PreProc">return</span> *top <span id="L37" class="LineNr"> 37 </span><span class="Delimiter">}</span> <span id="L38" class="LineNr"> 38 </span> -<span id="L39" class="LineNr"> 39 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), _val: code-point-utf8 <span class="Delimiter">{</span> -<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L39" class="LineNr"> 39 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), _val: code-point-utf8 <span class="Delimiter">{</span> +<span id="L40" class="LineNr"> 40 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L41" class="LineNr"> 41 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L42" class="LineNr"> 42 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdx">edx</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L43" class="LineNr"> 43 </span> <span class="PreProc">var</span> data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah @@ -112,8 +112,8 @@ if ('onhashchange' in window) { <span id="L48" class="LineNr"> 48 </span> add-to *top-addr, <span class="Constant">1</span> <span id="L49" class="LineNr"> 49 </span><span class="Delimiter">}</span> <span id="L50" class="LineNr"> 50 </span> -<span id="L51" class="LineNr"> 51 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L51'>pop-code-point-utf8-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> -<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L51" class="LineNr"> 51 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L51'>pop-grapheme-stack</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: code-point-utf8 <span class="Delimiter">{</span> +<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L53" class="LineNr"> 53 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L54" class="LineNr"> 54 </span> <span class="Delimiter">{</span> <span id="L55" class="LineNr"> 55 </span> compare *top-addr, <span class="Constant">0</span> @@ -128,8 +128,8 @@ if ('onhashchange' in window) { <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">return</span> *result-addr <span id="L65" class="LineNr"> 65 </span><span class="Delimiter">}</span> <span id="L66" class="LineNr"> 66 </span> -<span id="L67" class="LineNr"> 67 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L67'>copy-code-point-utf8-stack</a></span> _src: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), dest: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Delimiter">{</span> -<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _src +<span id="L67" class="LineNr"> 67 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L67'>copy-grapheme-stack</a></span> _src: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), dest: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Delimiter">{</span> +<span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> src/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _src <span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get src, data <span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L71" class="LineNr"> 71 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -139,7 +139,7 @@ if ('onhashchange' in window) { <span id="L75" class="LineNr"> 75 </span> compare i, *top-addr <span id="L76" class="LineNr"> 76 </span> <span class="PreProc">break-if->=</span> <span id="L77" class="LineNr"> 77 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: (addr code-point-utf8) <span class="Special"><-</span> index data, i -<span id="L78" class="LineNr"> 78 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> dest, *g +<span id="L78" class="LineNr"> 78 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> dest, *g <span id="L79" class="LineNr"> 79 </span> i <span class="Special"><-</span> increment <span id="L80" class="LineNr"> 80 </span> <span class="PreProc">loop</span> <span id="L81" class="LineNr"> 81 </span> <span class="Delimiter">}</span> @@ -148,8 +148,8 @@ if ('onhashchange' in window) { <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"># hardcoded colors:</span> <span id="L86" class="LineNr"> 86 </span><span class="muComment"># matching paren</span> -<span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L87" class="LineNr"> 87 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L87'>render-stack-from-bottom-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L89" class="LineNr"> 89 </span> <span class="PreProc">var</span> matching-open-paren-index/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L449'>get-matching-open-paren-index</a> self, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>, open-paren-depth <span id="L90" class="LineNr"> 90 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L91" class="LineNr"> 91 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah @@ -187,7 +187,7 @@ if ('onhashchange' in window) { <span id="L123" class="LineNr">123 </span><span class="Delimiter">}</span> <span id="L124" class="LineNr">124 </span> <span id="L125" class="LineNr">125 </span><span class="muComment"># helper for small words</span> -<span id="L126" class="LineNr">126 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), x: int, y: int, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L126" class="LineNr">126 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, <a href='514gap-buffer.mu.html#L942'>highlight-matching-open-paren?</a>: boolean, open-paren-depth: int<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L129" class="LineNr">129 </span> _width, _height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L75'>screen-size</a> <a href='500fake-screen.mu.html#L16'>screen</a> @@ -204,8 +204,8 @@ if ('onhashchange' in window) { <span id="L140" class="LineNr">140 </span><span class="muComment"># hard-coded colors:</span> <span id="L141" class="LineNr">141 </span><span class="muComment"># matching paren</span> <span id="L142" class="LineNr">142 </span><span class="muComment"># cursor</span> -<span id="L143" class="LineNr">143 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L143'>render-stack-from-top-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> -<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L143" class="LineNr">143 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L143'>render-stack-from-top-wrapping-right-then-down</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), xmin: int, ymin: int, xmax: int, ymax: int, _x: int, _y: int, render-cursor?: boolean, color: int, background-color: int<span class="PreProc"> -> </span>_/eax: int, _/<span class="muRegEcx">ecx</span>: int <span class="Delimiter">{</span> +<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> matching-close-paren-index/<span class="muRegEdx">edx</span>: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L393'>get-matching-close-paren-index</a> self, render-cursor? <span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah @@ -260,7 +260,7 @@ if ('onhashchange' in window) { <span id="L196" class="LineNr">196 </span><span class="Delimiter">}</span> <span id="L197" class="LineNr">197 </span> <span id="L198" class="LineNr">198 </span><span class="muComment"># helper for small words</span> -<span id="L199" class="LineNr">199 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L199'>render-stack-from-top</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), x: int, y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> +<span id="L199" class="LineNr">199 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L199'>render-stack-from-top</a></span> <a href='500fake-screen.mu.html#L16'>screen</a>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>), self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), x: int, y: int, render-cursor?: boolean<span class="PreProc"> -> </span>_/eax: int <span class="Delimiter">{</span> <span id="L200" class="LineNr">200 </span> <span class="PreProc">var</span> _width/eax: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L201" class="LineNr">201 </span> <span class="PreProc">var</span> _height/<span class="muRegEcx">ecx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L202" class="LineNr">202 </span> _width, _height <span class="Special"><-</span> <a href='500fake-screen.mu.html#L75'>screen-size</a> <a href='500fake-screen.mu.html#L16'>screen</a> @@ -272,190 +272,190 @@ if ('onhashchange' in window) { <span id="L208" class="LineNr">208 </span> <span class="PreProc">return</span> x2 <span class="muComment"># y2? yolo</span> <span id="L209" class="LineNr">209 </span><span class="Delimiter">}</span> <span id="L210" class="LineNr">210 </span> -<span id="L211" class="LineNr">211 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a></span> <span class="Delimiter">{</span> +<span id="L211" class="LineNr">211 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a></span> <span class="Delimiter">{</span> <span id="L212" class="LineNr">212 </span> <span class="muComment"># setup: gs = "abc"</span> -<span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> address gs-storage -<span id="L215" class="LineNr">215 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> gs, <span class="Constant">5</span> +<span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L214" class="LineNr">214 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage +<span id="L215" class="LineNr">215 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> <span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a -<span id="L217" class="LineNr">217 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L217" class="LineNr">217 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L218" class="LineNr">218 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b -<span id="L219" class="LineNr">219 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L219" class="LineNr">219 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L220" class="LineNr">220 </span> g <span class="Special"><-</span> copy <span class="Constant">0x63</span>/c -<span id="L221" class="LineNr">221 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L221" class="LineNr">221 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L222" class="LineNr">222 </span> <span class="muComment"># setup: screen</span> <span id="L223" class="LineNr">223 </span> <span class="PreProc">var</span> screen-storage: <a href='500fake-screen.mu.html#L16'>screen</a> <span id="L224" class="LineNr">224 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L16'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>) <span class="Special"><-</span> address screen-storage <span id="L225" class="LineNr">225 </span> <a href='500fake-screen.mu.html#L34'>initialize-screen</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L226" class="LineNr">226 </span> <span class="muComment">#</span> <span id="L227" class="LineNr">227 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</a> <a href='500fake-screen.mu.html#L16'>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="L228" class="LineNr">228 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from bottom"</span> -<span id="L229" class="LineNr">229 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from bottom: result"</span> -<span id="L230" class="LineNr">230 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">0</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from bottom: bg"</span> +<span id="L228" class="LineNr">228 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">0</span>/y, <span class="Constant">"abc "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from bottom"</span> +<span id="L229" class="LineNr">229 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from bottom: result"</span> +<span id="L230" class="LineNr">230 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">0</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from bottom: bg"</span> <span id="L231" class="LineNr">231 </span> <span class="muComment">#</span> <span id="L232" class="LineNr">232 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L199'>render-stack-from-top</a> <a href='500fake-screen.mu.html#L16'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">1</span>/y, <span class="Constant">0</span>/cursor=false -<span id="L233" class="LineNr">233 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from top without cursor"</span> -<span id="L234" class="LineNr">234 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from top without cursor: result"</span> -<span id="L235" class="LineNr">235 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from top without cursor: bg"</span> +<span id="L233" class="LineNr">233 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">1</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from top without cursor"</span> +<span id="L234" class="LineNr">234 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from top without cursor: result"</span> +<span id="L235" class="LineNr">235 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">1</span>/y, <span class="Constant">" "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from top without cursor: bg"</span> <span id="L236" class="LineNr">236 </span> <span class="muComment">#</span> <span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L199'>render-stack-from-top</a> <a href='500fake-screen.mu.html#L16'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true -<span id="L238" class="LineNr">238 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from top with cursor"</span> -<span id="L239" class="LineNr">239 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from top with cursor: result"</span> -<span id="L240" class="LineNr">240 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-code-point-utf8-stack</a> from top with cursor: bg"</span> +<span id="L238" class="LineNr">238 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"cba "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from top with cursor"</span> +<span id="L239" class="LineNr">239 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> x, <span class="Constant">3</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from top with cursor: result"</span> +<span id="L240" class="LineNr">240 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L211'>test-render-grapheme-stack</a> from top with cursor: bg"</span> <span id="L241" class="LineNr">241 </span><span class="Delimiter">}</span> <span id="L242" class="LineNr">242 </span> -<span id="L243" class="LineNr">243 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L243'>test-render-code-point-utf8-stack-while-highlighting-matching-close-paren</a></span> <span class="Delimiter">{</span> +<span id="L243" class="LineNr">243 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L243'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a></span> <span class="Delimiter">{</span> <span id="L244" class="LineNr">244 </span> <span class="muComment"># setup: gs = "(b)"</span> -<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> address gs-storage -<span id="L247" class="LineNr">247 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> gs, <span class="Constant">5</span> +<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage +<span id="L247" class="LineNr">247 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> <span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren -<span id="L249" class="LineNr">249 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L249" class="LineNr">249 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L250" class="LineNr">250 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b -<span id="L251" class="LineNr">251 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L251" class="LineNr">251 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L252" class="LineNr">252 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L253" class="LineNr">253 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L253" class="LineNr">253 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L254" class="LineNr">254 </span> <span class="muComment"># setup: screen</span> <span id="L255" class="LineNr">255 </span> <span class="PreProc">var</span> screen-storage: <a href='500fake-screen.mu.html#L16'>screen</a> <span id="L256" class="LineNr">256 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L16'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>) <span class="Special"><-</span> address screen-storage <span id="L257" class="LineNr">257 </span> <a href='500fake-screen.mu.html#L34'>initialize-screen</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L258" class="LineNr">258 </span> <span class="muComment">#</span> <span id="L259" class="LineNr">259 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L199'>render-stack-from-top</a> <a href='500fake-screen.mu.html#L16'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true -<span id="L260" class="LineNr">260 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-code-point-utf8-stack-while-highlighting-matching-close-paren"</span> -<span id="L261" class="LineNr">261 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L243'>test-render-code-point-utf8-stack-while-highlighting-matching-close-paren</a>: cursor"</span> -<span id="L262" class="LineNr">262 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L243'>test-render-code-point-utf8-stack-while-highlighting-matching-close-paren</a>: matching paren"</span> +<span id="L260" class="LineNr">260 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>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="L261" class="LineNr">261 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L243'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: cursor"</span> +<span id="L262" class="LineNr">262 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L243'>test-render-grapheme-stack-while-highlighting-matching-close-paren</a>: matching paren"</span> <span id="L263" class="LineNr">263 </span><span class="Delimiter">}</span> <span id="L264" class="LineNr">264 </span> -<span id="L265" class="LineNr">265 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L265'>test-render-code-point-utf8-stack-while-highlighting-matching-close-paren-2</a></span> <span class="Delimiter">{</span> +<span id="L265" class="LineNr">265 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L265'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a></span> <span class="Delimiter">{</span> <span id="L266" class="LineNr">266 </span> <span class="muComment"># setup: gs = "(a (b)) c"</span> -<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> address gs-storage -<span id="L269" class="LineNr">269 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> gs, <span class="Constant">0x10</span> +<span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L268" class="LineNr">268 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage +<span id="L269" class="LineNr">269 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">0x10</span> <span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0x63</span>/c -<span id="L271" class="LineNr">271 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L271" class="LineNr">271 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L272" class="LineNr">272 </span> g <span class="Special"><-</span> copy <span class="Constant">0x20</span>/space -<span id="L273" class="LineNr">273 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L273" class="LineNr">273 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L274" class="LineNr">274 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren -<span id="L275" class="LineNr">275 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L275" class="LineNr">275 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L276" class="LineNr">276 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren -<span id="L277" class="LineNr">277 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L277" class="LineNr">277 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L278" class="LineNr">278 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b -<span id="L279" class="LineNr">279 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L279" class="LineNr">279 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L280" class="LineNr">280 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L281" class="LineNr">281 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L281" class="LineNr">281 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L282" class="LineNr">282 </span> g <span class="Special"><-</span> copy <span class="Constant">0x20</span>/space -<span id="L283" class="LineNr">283 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L283" class="LineNr">283 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L284" class="LineNr">284 </span> g <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a -<span id="L285" class="LineNr">285 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L285" class="LineNr">285 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L286" class="LineNr">286 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L287" class="LineNr">287 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L287" class="LineNr">287 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L288" class="LineNr">288 </span> <span class="muComment"># setup: screen</span> <span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> screen-storage: <a href='500fake-screen.mu.html#L16'>screen</a> <span id="L290" class="LineNr">290 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L16'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>) <span class="Special"><-</span> address screen-storage <span id="L291" class="LineNr">291 </span> <a href='500fake-screen.mu.html#L34'>initialize-screen</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L292" class="LineNr">292 </span> <span class="muComment">#</span> <span id="L293" class="LineNr">293 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L199'>render-stack-from-top</a> <a href='500fake-screen.mu.html#L16'>screen</a>, gs, <span class="Constant">0</span>/x, <span class="Constant">2</span>/y, <span class="Constant">1</span>/cursor=true -<span id="L294" class="LineNr">294 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(a (b)) c "</span>, <span class="Constant">"F - test-render-code-point-utf8-stack-while-highlighting-matching-close-paren-2"</span> -<span id="L295" class="LineNr">295 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L265'>test-render-code-point-utf8-stack-while-highlighting-matching-close-paren-2</a>: cursor"</span> -<span id="L296" class="LineNr">296 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L265'>test-render-code-point-utf8-stack-while-highlighting-matching-close-paren-2</a>: matching paren"</span> +<span id="L294" class="LineNr">294 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>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="L295" class="LineNr">295 </span> <a href='504test-screen.mu.html#L267'>check-background-color-in-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">3</span>/bg=reverse, <span class="Constant">2</span>/y, <span class="Constant">"| "</span>, <span class="Constant">"F - <a href='513grapheme-stack.mu.html#L265'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: cursor"</span> +<span id="L296" class="LineNr">296 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L265'>test-render-grapheme-stack-while-highlighting-matching-close-paren-2</a>: matching paren"</span> <span id="L297" class="LineNr">297 </span><span class="Delimiter">}</span> <span id="L298" class="LineNr">298 </span> -<span id="L299" class="LineNr">299 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L299'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a></span> <span class="Delimiter">{</span> +<span id="L299" class="LineNr">299 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L299'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a></span> <span class="Delimiter">{</span> <span id="L300" class="LineNr">300 </span> <span class="muComment"># setup: gs = "(b)"</span> -<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> address gs-storage -<span id="L303" class="LineNr">303 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> gs, <span class="Constant">5</span> +<span id="L301" class="LineNr">301 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L302" class="LineNr">302 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage +<span id="L303" class="LineNr">303 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> <span id="L304" class="LineNr">304 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L305" class="LineNr">305 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L305" class="LineNr">305 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L306" class="LineNr">306 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b -<span id="L307" class="LineNr">307 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L307" class="LineNr">307 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L308" class="LineNr">308 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren -<span id="L309" class="LineNr">309 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L309" class="LineNr">309 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L310" class="LineNr">310 </span> <span class="muComment"># setup: screen</span> <span id="L311" class="LineNr">311 </span> <span class="PreProc">var</span> screen-storage: <a href='500fake-screen.mu.html#L16'>screen</a> <span id="L312" class="LineNr">312 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L16'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>) <span class="Special"><-</span> address screen-storage <span id="L313" class="LineNr">313 </span> <a href='500fake-screen.mu.html#L34'>initialize-screen</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L314" class="LineNr">314 </span> <span class="muComment">#</span> <span id="L315" class="LineNr">315 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</a> <a href='500fake-screen.mu.html#L16'>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="L316" class="LineNr">316 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b) "</span>, <span class="Constant">"F - test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-with-close-paren-at-end"</span> -<span id="L317" class="LineNr">317 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L299'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a>: matching paren"</span> +<span id="L316" class="LineNr">316 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>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="L317" class="LineNr">317 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L299'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end</a>: matching paren"</span> <span id="L318" class="LineNr">318 </span><span class="Delimiter">}</span> <span id="L319" class="LineNr">319 </span> -<span id="L320" class="LineNr">320 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L320'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a></span> <span class="Delimiter">{</span> +<span id="L320" class="LineNr">320 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L320'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a></span> <span class="Delimiter">{</span> <span id="L321" class="LineNr">321 </span> <span class="muComment"># setup: gs = "a((b))"</span> -<span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> address gs-storage -<span id="L324" class="LineNr">324 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> gs, <span class="Constant">0x10</span> +<span id="L322" class="LineNr">322 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L323" class="LineNr">323 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage +<span id="L324" class="LineNr">324 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">0x10</span> <span id="L325" class="LineNr">325 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a -<span id="L326" class="LineNr">326 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L326" class="LineNr">326 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L327" class="LineNr">327 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L328" class="LineNr">328 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L328" class="LineNr">328 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L329" class="LineNr">329 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L330" class="LineNr">330 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L330" class="LineNr">330 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L331" class="LineNr">331 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b -<span id="L332" class="LineNr">332 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L332" class="LineNr">332 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L333" class="LineNr">333 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren -<span id="L334" class="LineNr">334 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L334" class="LineNr">334 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L335" class="LineNr">335 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren -<span id="L336" class="LineNr">336 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L336" class="LineNr">336 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L337" class="LineNr">337 </span> <span class="muComment"># setup: screen</span> <span id="L338" class="LineNr">338 </span> <span class="PreProc">var</span> screen-storage: <a href='500fake-screen.mu.html#L16'>screen</a> <span id="L339" class="LineNr">339 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L16'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>) <span class="Special"><-</span> address screen-storage <span id="L340" class="LineNr">340 </span> <a href='500fake-screen.mu.html#L34'>initialize-screen</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L341" class="LineNr">341 </span> <span class="muComment">#</span> <span id="L342" class="LineNr">342 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</a> <a href='500fake-screen.mu.html#L16'>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="L343" class="LineNr">343 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b)) "</span>, <span class="Constant">"F - test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2"</span> -<span id="L344" class="LineNr">344 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L320'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a>: matching paren"</span> +<span id="L343" class="LineNr">343 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>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="L344" class="LineNr">344 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L320'>test-render-grapheme-stack-while-highlighting-matching-open-paren-with-close-paren-at-end-2</a>: matching paren"</span> <span id="L345" class="LineNr">345 </span><span class="Delimiter">}</span> <span id="L346" class="LineNr">346 </span> -<span id="L347" class="LineNr">347 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L347'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren</a></span> <span class="Delimiter">{</span> +<span id="L347" class="LineNr">347 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L347'>test-render-grapheme-stack-while-highlighting-matching-open-paren</a></span> <span class="Delimiter">{</span> <span id="L348" class="LineNr">348 </span> <span class="muComment"># setup: gs = "(b"</span> -<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> address gs-storage -<span id="L351" class="LineNr">351 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> gs, <span class="Constant">5</span> +<span id="L349" class="LineNr">349 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L350" class="LineNr">350 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage +<span id="L351" class="LineNr">351 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">5</span> <span id="L352" class="LineNr">352 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L353" class="LineNr">353 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L353" class="LineNr">353 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L354" class="LineNr">354 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b -<span id="L355" class="LineNr">355 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L355" class="LineNr">355 </span> <a href='513grapheme-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-storage: <a href='500fake-screen.mu.html#L16'>screen</a> <span id="L358" class="LineNr">358 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L16'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>) <span class="Special"><-</span> address screen-storage <span id="L359" class="LineNr">359 </span> <a href='500fake-screen.mu.html#L34'>initialize-screen</a> <a href='500fake-screen.mu.html#L16'>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/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</a> <a href='500fake-screen.mu.html#L16'>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#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"(b "</span>, <span class="Constant">"F - test-render-code-point-utf8-stack-while-highlighting-matching-open-paren"</span> -<span id="L363" class="LineNr">363 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L347'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren</a>: matching paren"</span> +<span id="L362" class="LineNr">362 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>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="L363" class="LineNr">363 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L347'>test-render-grapheme-stack-while-highlighting-matching-open-paren</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="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L366'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-2</a></span> <span class="Delimiter">{</span> +<span id="L366" class="LineNr">366 </span><span class="PreProc">fn</span> <span class="muTest"><a href='513grapheme-stack.mu.html#L366'>test-render-grapheme-stack-while-highlighting-matching-open-paren-2</a></span> <span class="Delimiter">{</span> <span id="L367" class="LineNr">367 </span> <span class="muComment"># setup: gs = "a((b)"</span> -<span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a> -<span id="L369" class="LineNr">369 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> address gs-storage -<span id="L370" class="LineNr">370 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-code-point-utf8-stack</a> gs, <span class="Constant">0x10</span> +<span id="L368" class="LineNr">368 </span> <span class="PreProc">var</span> gs-storage: <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a> +<span id="L369" class="LineNr">369 </span> <span class="PreProc">var</span> gs/<span class="muRegEdi">edi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> address gs-storage +<span id="L370" class="LineNr">370 </span> <a href='513grapheme-stack.mu.html#L8'>initialize-grapheme-stack</a> gs, <span class="Constant">0x10</span> <span id="L371" class="LineNr">371 </span> <span class="PreProc">var</span> g/eax: code-point-utf8 <span class="Special"><-</span> copy <span class="Constant">0x61</span>/a -<span id="L372" class="LineNr">372 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L372" class="LineNr">372 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L373" class="LineNr">373 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L374" class="LineNr">374 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L374" class="LineNr">374 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L375" class="LineNr">375 </span> g <span class="Special"><-</span> copy <span class="Constant">0x28</span>/open-paren -<span id="L376" class="LineNr">376 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L376" class="LineNr">376 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L377" class="LineNr">377 </span> g <span class="Special"><-</span> copy <span class="Constant">0x62</span>/b -<span id="L378" class="LineNr">378 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L378" class="LineNr">378 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L379" class="LineNr">379 </span> g <span class="Special"><-</span> copy <span class="Constant">0x29</span>/close-paren -<span id="L380" class="LineNr">380 </span> <a href='513grapheme-stack.mu.html#L39'>push-code-point-utf8-stack</a> gs, g +<span id="L380" class="LineNr">380 </span> <a href='513grapheme-stack.mu.html#L39'>push-grapheme-stack</a> gs, g <span id="L381" class="LineNr">381 </span> <span class="muComment"># setup: screen</span> <span id="L382" class="LineNr">382 </span> <span class="PreProc">var</span> screen-storage: <a href='500fake-screen.mu.html#L16'>screen</a> <span id="L383" class="LineNr">383 </span> <span class="PreProc">var</span> <a href='500fake-screen.mu.html#L16'>screen</a>/<span class="muRegEsi">esi</span>: (addr <a href='500fake-screen.mu.html#L16'>screen</a>) <span class="Special"><-</span> address screen-storage <span id="L384" class="LineNr">384 </span> <a href='500fake-screen.mu.html#L34'>initialize-screen</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">5</span>, <span class="Constant">4</span>, <span class="Constant">0</span>/no-pixel-graphics <span id="L385" class="LineNr">385 </span> <span class="muComment">#</span> <span id="L386" class="LineNr">386 </span> <span class="PreProc">var</span> x/eax: int <span class="Special"><-</span> <a href='513grapheme-stack.mu.html#L126'>render-stack-from-bottom</a> <a href='500fake-screen.mu.html#L16'>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="L387" class="LineNr">387 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>screen</a>, <span class="Constant">2</span>/y, <span class="Constant">"a((b) "</span>, <span class="Constant">"F - test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-2"</span> -<span id="L388" class="LineNr">388 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L366'>test-render-code-point-utf8-stack-while-highlighting-matching-open-paren-2</a>: matching paren"</span> +<span id="L387" class="LineNr">387 </span> <a href='504test-screen.mu.html#L7'>check-screen-row</a> <a href='500fake-screen.mu.html#L16'>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="L388" class="LineNr">388 </span> <a href='504test-screen.mu.html#L75'>check-screen-row-in-color</a> <a href='500fake-screen.mu.html#L16'>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='513grapheme-stack.mu.html#L366'>test-render-grapheme-stack-while-highlighting-matching-open-paren-2</a>: matching paren"</span> <span id="L389" class="LineNr">389 </span><span class="Delimiter">}</span> <span id="L390" class="LineNr">390 </span> <span id="L391" class="LineNr">391 </span><span class="muComment"># return the index of the matching close-paren of the code-point-utf8 at cursor (top of stack)</span> <span id="L392" class="LineNr">392 </span><span class="muComment"># or top index if there's no matching close-paren</span> -<span id="L393" class="LineNr">393 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L393'>get-matching-close-paren-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), render-cursor?: boolean<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> -<span id="L394" class="LineNr">394 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L393" class="LineNr">393 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L393'>get-matching-close-paren-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), render-cursor?: boolean<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> +<span id="L394" class="LineNr">394 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L395" class="LineNr">395 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L396" class="LineNr">396 </span> <span class="muComment"># if not rendering cursor, return</span> <span id="L397" class="LineNr">397 </span> compare render-cursor?, <span class="Constant">0</span>/false @@ -510,8 +510,8 @@ if ('onhashchange' in window) { <span id="L446" class="LineNr">446 </span> <span id="L447" class="LineNr">447 </span><span class="muComment"># return the index of the first open-paren at the given depth</span> <span id="L448" class="LineNr">448 </span><span class="muComment"># or top index if there's no matching close-paren</span> -<span id="L449" class="LineNr">449 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L449'>get-matching-open-paren-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), control: boolean, depth: int<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> -<span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L449" class="LineNr">449 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L449'>get-matching-open-paren-index</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), control: boolean, depth: int<span class="PreProc"> -> </span>_/<span class="muRegEdx">edx</span>: int <span class="Delimiter">{</span> +<span id="L450" class="LineNr">450 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L451" class="LineNr">451 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEdx">edx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L452" class="LineNr">452 </span> <span class="muComment"># if not rendering cursor, return</span> <span id="L453" class="LineNr">453 </span> compare control, <span class="Constant">0</span>/false @@ -558,8 +558,8 @@ if ('onhashchange' in window) { <span id="L494" class="LineNr">494 </span> <span id="L495" class="LineNr">495 </span><span class="muComment"># compare from bottom</span> <span id="L496" class="LineNr">496 </span><span class="muComment"># beware: modifies 'stream', which must be disposed of after a false result</span> -<span id="L497" class="LineNr">497 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L497'>prefix-match?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L498" class="LineNr">498 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L497" class="LineNr">497 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L497'>prefix-match?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L498" class="LineNr">498 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L499" class="LineNr">499 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L500" class="LineNr">500 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L501" class="LineNr">501 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -586,8 +586,8 @@ if ('onhashchange' in window) { <span id="L522" class="LineNr">522 </span> <span id="L523" class="LineNr">523 </span><span class="muComment"># compare from bottom</span> <span id="L524" class="LineNr">524 </span><span class="muComment"># beware: modifies 'stream', which must be disposed of after a false result</span> -<span id="L525" class="LineNr">525 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L525'>suffix-match?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L526" class="LineNr">526 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L525" class="LineNr">525 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L525'>suffix-match?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>), s: (addr stream byte)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L526" class="LineNr">526 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L527" class="LineNr">527 </span> <span class="PreProc">var</span> data-ah/<span class="muRegEdi">edi</span>: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L528" class="LineNr">528 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L529" class="LineNr">529 </span> <span class="PreProc">var</span> data/<span class="muRegEdi">edi</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data @@ -613,15 +613,15 @@ if ('onhashchange' in window) { <span id="L549" class="LineNr">549 </span> <span class="PreProc">return</span> <span class="Constant">1</span> <span class="muComment"># true</span> <span id="L550" class="LineNr">550 </span><span class="Delimiter">}</span> <span id="L551" class="LineNr">551 </span> -<span id="L552" class="LineNr">552 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L552'>code-point-utf8-stack-is-decimal-integer?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> -<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>code-point-utf8-stack</a>) <span class="Special"><-</span> copy _self +<span id="L552" class="LineNr">552 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='513grapheme-stack.mu.html#L552'>grapheme-stack-is-decimal-integer?</a></span> _self: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>)<span class="PreProc"> -> </span>_/eax: boolean <span class="Delimiter">{</span> +<span id="L553" class="LineNr">553 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr <a href='513grapheme-stack.mu.html#L3'>grapheme-stack</a>) <span class="Special"><-</span> copy _self <span id="L554" class="LineNr">554 </span> <span class="PreProc">var</span> data-ah/eax: (addr handle array code-point-utf8) <span class="Special"><-</span> get self, data <span id="L555" class="LineNr">555 </span> <span class="PreProc">var</span> _data/eax: (addr array code-point-utf8) <span class="Special"><-</span> <a href='120allocate.subx.html#L235'>lookup</a> *data-ah <span id="L556" class="LineNr">556 </span> <span class="PreProc">var</span> data/<span class="muRegEdx">edx</span>: (addr array code-point-utf8) <span class="Special"><-</span> copy _data <span id="L557" class="LineNr">557 </span> <span class="PreProc">var</span> top-addr/<span class="muRegEcx">ecx</span>: (addr int) <span class="Special"><-</span> get self, top <span id="L558" class="LineNr">558 </span> <span class="PreProc">var</span> i/<span class="muRegEbx">ebx</span>: int <span class="Special"><-</span> copy <span class="Constant">0</span> <span id="L559" class="LineNr">559 </span> <span class="PreProc">var</span> result/eax: boolean <span class="Special"><-</span> copy <span class="Constant">1</span>/true -<span id="L560" class="LineNr">560 </span> $code-point-utf8-stack-is-integer?:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> +<span id="L560" class="LineNr">560 </span> $grapheme-stack-is-integer?:<span class="PreProc">loop</span>: <span class="Delimiter">{</span> <span id="L561" class="LineNr">561 </span> compare i, *top-addr <span id="L562" class="LineNr">562 </span> <span class="PreProc">break-if->=</span> <span id="L563" class="LineNr">563 </span> <span class="PreProc">var</span> g/<span class="muRegEdx">edx</span>: (addr code-point-utf8) <span class="Special"><-</span> index data, i |