diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-11-03 22:40:47 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-11-03 22:53:39 -0800 |
commit | 62151e17c463c640464de752afbd41e279f4ba2a (patch) | |
tree | 53504235994c6629063856b6a3ee05fb2815ebca /html/apps/arith.mu.html | |
parent | 768aeffbbe76e66f30325fa9f82fac539c119e82 (diff) | |
download | mu-62151e17c463c640464de752afbd41e279f4ba2a.tar.gz |
7175
Diffstat (limited to 'html/apps/arith.mu.html')
-rw-r--r-- | html/apps/arith.mu.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/apps/arith.mu.html b/html/apps/arith.mu.html index 6b94ab74..0c98c50a 100644 --- a/html/apps/arith.mu.html +++ b/html/apps/arith.mu.html @@ -114,7 +114,7 @@ if ('onhashchange' in window) { <span id="L55" class="LineNr"> 55 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span> <span id="L57" class="LineNr"> 57 </span> -<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L58'>simplify</a></span><span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _2/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L58'>simplify</a></span><span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L59" class="LineNr"> 59 </span> <span class="muComment"># prime the pump</span> <span id="L60" class="LineNr"> 60 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: grapheme <span class="SpecialChar"><-</span> <a href='arith.mu.html#L248'>get-char</a> <span id="L61" class="LineNr"> 61 </span> <span class="muComment"># do it</span> @@ -123,7 +123,7 @@ if ('onhashchange' in window) { <span id="L64" class="LineNr"> 64 </span> <span class="PreProc">return</span> result, look <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='arith.mu.html#L67'>expression</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _2/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L67" class="LineNr"> 67 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L67'>expression</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: grapheme <span class="SpecialChar"><-</span> copy _look <span id="L69" class="LineNr"> 69 </span> <span class="muComment"># read arg</span> <span id="L70" class="LineNr"> 70 </span> <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> @@ -168,7 +168,7 @@ if ('onhashchange' in window) { <span id="L109" class="LineNr">109 </span> <span class="PreProc">return</span> result, look <span id="L110" class="LineNr">110 </span><span class="Delimiter">}</span> <span id="L111" class="LineNr">111 </span> -<span id="L112" class="LineNr">112 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L112'>term</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _2/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L112" class="LineNr">112 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L112'>term</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: grapheme <span class="SpecialChar"><-</span> copy _look <span id="L114" class="LineNr">114 </span> <span class="muComment"># read arg</span> <span id="L115" class="LineNr">115 </span> look <span class="SpecialChar"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look @@ -213,7 +213,7 @@ if ('onhashchange' in window) { <span id="L154" class="LineNr">154 </span> <span class="PreProc">return</span> result, look <span id="L155" class="LineNr">155 </span><span class="Delimiter">}</span> <span id="L156" class="LineNr">156 </span> -<span id="L157" class="LineNr">157 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L157'>factor</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _2/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L157" class="LineNr">157 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L157'>factor</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L158" class="LineNr">158 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: grapheme <span class="SpecialChar"><-</span> copy _look <span class="muComment"># should be a no-op</span> <span id="L159" class="LineNr">159 </span> look <span class="SpecialChar"><-</span> <a href='arith.mu.html#L237'>skip-spaces</a> look <span id="L160" class="LineNr">160 </span> <span class="muComment"># if next char is not '(', parse a number</span> @@ -261,13 +261,13 @@ if ('onhashchange' in window) { <span id="L202" class="LineNr">202 </span> <span class="PreProc">return</span> <span class="Constant">0</span> <span class="muComment"># false</span> <span id="L203" class="LineNr">203 </span><span class="Delimiter">}</span> <span id="L204" class="LineNr">204 </span> -<span id="L205" class="LineNr">205 </span><span class="PreProc">fn</span> <span class="muFunction">operator</span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">ecx</span>: byte, _2/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L205" class="LineNr">205 </span><span class="PreProc">fn</span> <span class="muFunction">operator</span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">ecx</span>: byte, _/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> op/<span class="Constant">ecx</span>: byte <span class="SpecialChar"><-</span> copy _look <span id="L207" class="LineNr">207 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: grapheme <span class="SpecialChar"><-</span> <a href='arith.mu.html#L248'>get-char</a> <span id="L208" class="LineNr">208 </span> <span class="PreProc">return</span> op, look <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="muFunction"><a href='arith.mu.html#L211'>num</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _2/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> +<span id="L211" class="LineNr">211 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L211'>num</a></span> _look: grapheme<span class="PreProc"> -> </span>_/<span class="Constant">eax</span>: int, _/<span class="Constant">esi</span>: grapheme <span class="Delimiter">{</span> <span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: grapheme <span class="SpecialChar"><-</span> copy _look <span id="L213" class="LineNr">213 </span> <span class="PreProc">var</span> result/<span class="Constant">edi</span>: int <span class="SpecialChar"><-</span> copy <span class="Constant">0</span> <span id="L214" class="LineNr">214 </span> <span class="Delimiter">{</span> |