diff options
Diffstat (limited to 'html/shell/macroexpand.mu.html')
-rw-r--r-- | html/shell/macroexpand.mu.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/html/shell/macroexpand.mu.html b/html/shell/macroexpand.mu.html index b9c383f6..7d233c59 100644 --- a/html/shell/macroexpand.mu.html +++ b/html/shell/macroexpand.mu.html @@ -1,14 +1,14 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> -<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<meta charset="UTF-8"> <title>Mu - shell/macroexpand.mu</title> -<meta name="Generator" content="Vim/8.1"> -<meta name="plugin-version" content="vim8.1_v1"> +<meta name="Generator" content="Vim/8.2"> +<meta name="plugin-version" content="vim8.1_v2"> <meta name="syntax" content="none"> -<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> +<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback"> <meta name="colorscheme" content="minimal-light"> -<style type="text/css"> +<style> <!-- pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; } @@ -32,7 +32,7 @@ a { color:inherit; } --> </style> -<script type='text/javascript'> +<script> <!-- /* function to open any folds containing a jumped-to line before jumping to it */ @@ -65,7 +65,7 @@ if ('onhashchange' in window) { <a href='https://github.com/akkartik/mu/blob/main/shell/macroexpand.mu'>https://github.com/akkartik/mu/blob/main/shell/macroexpand.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='macroexpand.mu.html#L1'>macroexpand</a></span> expr-ah: (addr handle <a href='cell.mu.html#L1'>cell</a>), globals: (addr <a href='global.mu.html#L1'>global-table</a>), trace: (addr trace) <span class="Delimiter">{</span> -<span id="L2" class="Folded"> 2 </span><span class="Folded">+-- 15 lines: # trace "macroexpand " expr-ah ------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L2" class="Folded"> 2 </span><span class="Folded">+-- 15 lines: # trace "macroexpand " expr-ah --------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L17" class="LineNr"> 17 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L18" class="LineNr"> 18 </span><span class="CommentedCode">#? clear-screen 0</span> <span id="L19" class="LineNr"> 19 </span><span class="CommentedCode">#? set-cursor-position 0, 0x20 0x20</span> @@ -79,7 +79,7 @@ if ('onhashchange' in window) { <span id="L27" class="LineNr"> 27 </span> <span class="PreProc">loop-if-!=</span> <span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">}</span> <span id="L29" class="LineNr"> 29 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L30" class="Folded"> 30 </span><span class="Folded">+-- 15 lines: # trace "=> " expr-ah ---------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L30" class="Folded"> 30 </span><span class="Folded">+-- 15 lines: # trace "=> " expr-ah -----------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L45" class="LineNr"> 45 </span><span class="Delimiter">}</span> <span id="L46" class="LineNr"> 46 </span> <span id="L47" class="LineNr"> 47 </span><span class="muComment"># return true if we found any macros</span> @@ -90,7 +90,7 @@ if ('onhashchange' in window) { <span id="L52" class="LineNr"> 52 </span> <span class="PreProc">break-if-!=</span> <span id="L53" class="LineNr"> 53 </span> <a href='../317abort.subx.html#L5'>abort</a> <span class="Constant">"macroexpand-iter: NULL expr-ah"</span> <span id="L54" class="LineNr"> 54 </span> <span class="Delimiter">}</span> -<span id="L55" class="Folded"> 55 </span><span class="Folded">+-- 15 lines: # trace "macroexpand-iter " expr ----------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L55" class="Folded"> 55 </span><span class="Folded">+-- 15 lines: # trace "macroexpand-iter " expr ------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L70" class="LineNr"> 70 </span> <a href='trace.mu.html#L239'>trace-lower</a> trace <span id="L71" class="LineNr"> 71 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"a"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg <span id="L72" class="LineNr"> 72 </span> <span class="muComment"># if expr is a non-pair, return</span> @@ -185,7 +185,7 @@ if ('onhashchange' in window) { <span id="L161" class="LineNr">161 </span> <span class="PreProc">loop</span> <span id="L162" class="LineNr">162 </span> <span class="Delimiter">}</span> <span id="L163" class="LineNr">163 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L164" class="Folded">164 </span><span class="Folded">+-- 15 lines: # trace "fn=> " _expr-ah ------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L164" class="Folded">164 </span><span class="Folded">+-- 15 lines: # trace "fn=> " _expr-ah --------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L179" class="LineNr">179 </span> <span class="PreProc">return</span> result <span id="L180" class="LineNr">180 </span> <span class="Delimiter">}</span> <span id="L181" class="LineNr">181 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"g"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg @@ -248,7 +248,7 @@ if ('onhashchange' in window) { <span id="L238" class="LineNr">238 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L48'>macroexpand-iter</a> val-ah, globals, trace <span id="L240" class="LineNr">240 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L241" class="Folded">241 </span><span class="Folded">+-- 15 lines: # trace "define=> " _expr-ah --------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L241" class="Folded">241 </span><span class="Folded">+-- 15 lines: # trace "define=> " _expr-ah ----------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L256" class="LineNr">256 </span> <span class="PreProc">return</span> macro-found? <span id="L257" class="LineNr">257 </span> <span class="Delimiter">}</span> <span id="L258" class="LineNr">258 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"j"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg @@ -265,7 +265,7 @@ if ('onhashchange' in window) { <span id="L269" class="LineNr">269 </span> <span class="PreProc">var</span> val-ah/<span class="muRegEdx">edx</span>: (addr handle <a href='cell.mu.html#L1'>cell</a>) <span class="Special"><-</span> get rest, left <span id="L270" class="LineNr">270 </span> <span class="PreProc">var</span> macro-found?/eax: boolean <span class="Special"><-</span> <a href='macroexpand.mu.html#L48'>macroexpand-iter</a> val-ah, globals, trace <span id="L271" class="LineNr">271 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L272" class="Folded">272 </span><span class="Folded">+-- 15 lines: # trace "set=> " _expr-ah -----------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L272" class="Folded">272 </span><span class="Folded">+-- 15 lines: # trace "set=> " _expr-ah -------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L287" class="LineNr">287 </span> <span class="PreProc">return</span> macro-found? <span id="L288" class="LineNr">288 </span> <span class="Delimiter">}</span> <span id="L289" class="LineNr">289 </span> <a href='../315stack-debug.subx.html#L56'>debug-print</a> <span class="Constant">"k"</span>, <span class="Constant">7</span>/fg, <span class="Constant">0</span>/bg @@ -301,7 +301,7 @@ if ('onhashchange' in window) { <span id="L319" class="LineNr">319 </span><span class="CommentedCode">#? turn-on-debug-print</span> <span id="L320" class="LineNr">320 </span> <a href='evaluate.mu.html#L681'>apply</a> macro-definition-ah, rest-ah, expr-ah, globals, trace, <span class="Constant">0</span>/no-screen, <span class="Constant">0</span>/no-keyboard, <span class="Constant">0</span>/definitions-created, <span class="Constant">0</span>/call-number <span id="L321" class="LineNr">321 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L322" class="Folded">322 </span><span class="Folded">+-- 15 lines: # trace "1=> " _expr-ah -------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L322" class="Folded">322 </span><span class="Folded">+-- 15 lines: # trace "1=> " _expr-ah ---------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L337" class="LineNr">337 </span> <span class="PreProc">return</span> <span class="Constant">1</span>/true <span id="L338" class="LineNr">338 </span> <span class="Delimiter">}</span> <span id="L339" class="LineNr">339 </span> <span class="muComment"># no macro found; process any macros within args</span> @@ -333,7 +333,7 @@ if ('onhashchange' in window) { <span id="L365" class="LineNr">365 </span> <span class="PreProc">loop</span> <span id="L366" class="LineNr">366 </span> <span class="Delimiter">}</span> <span id="L367" class="LineNr">367 </span> <a href='trace.mu.html#L250'>trace-higher</a> trace -<span id="L368" class="Folded">368 </span><span class="Folded">+-- 15 lines: # trace "=> " _expr-ah --------------------------------------------------------------------------------------------------------------------------------------------------</span> +<span id="L368" class="Folded">368 </span><span class="Folded">+-- 15 lines: # trace "=> " _expr-ah ----------------------------------------------------------------------------------------------------------------------------------------------------</span> <span id="L383" class="LineNr">383 </span> <span class="PreProc">return</span> result <span id="L384" class="LineNr">384 </span><span class="Delimiter">}</span> <span id="L385" class="LineNr">385 </span> |