Updated mn guide
h3rald h3rald@h3rald.com
Sat, 24 Apr 2021 20:21:17 +0000
1 files changed,
17 insertions(+),
10 deletions(-)
jump to
M
assets/mn/Mn_DeveloperGuide.htm
→
assets/mn/Mn_DeveloperGuide.htm
@@ -7390,7 +7390,7 @@
<a name="Who?"></a> <h3>Who?<a href="#document-top" title="Go to top"></a></h3> -<p><em>mn</em> was created and implemented by <a href="https://h3rald.com">Fabio Cevasco</a>,</p> +<p><em>mn</em> was created and implemented by <a href="https://cevasco.org">Fabio Cevasco</a>.</p> <a name="When?"></a> <h3>When?<a href="#document-top" title="Go to top"></a></h3>@@ -7403,16 +7403,16 @@
<p>You can download one of the following pre-built <em>mn</em> binaries:</p> <ul> -<li><a href="https://github.com/h3rald/mn/releases/download/v0.1.0/mn_v0.1.0_macosx_x64.zip">mn v0.1.0 for macOS (x64)</a></li> -<li><a href="https://github.com/h3rald/mn/releases/download/v0.1.0/mn_v0.1.0_windows_x64.zip">mn v0.1.0 for Windows (x64)</a></li> -<li><a href="https://github.com/h3rald/mn/releases/download/v0.1.0/mn_v0.1.0_linux_x64.zip">mn v0.1.0 for Linux (x64)</a></li> +<li><a href="https://github.com/h3rald/mn/releases/download/v0.2.0/mn_v0.2.0_macosx_x64.zip">mn v0.2.0 for macOS (x64)</a></li> +<li><a href="https://github.com/h3rald/mn/releases/download/v0.2.0/mn_v0.2.0_windows_x64.zip">mn v0.2.0 for Windows (x64)</a></li> +<li><a href="https://github.com/h3rald/mn/releases/download/v0.2.0/mn_v0.2.0_linux_x64.zip">mn v0.2.0 for Linux (x64)</a></li> </ul> <a name="Building-from-source"></a> <h3>Building from source<a href="#document-top" title="Go to top"></a></h3> -<p>Alternatively, you can build m from source as follows:</p> +<p>Alternatively, you can build <em>mn</em> from source as follows:</p> <ol> <li>Download and install <a href="https://nim-lang.org">Nim</a>.</li>@@ -7427,7 +7427,7 @@ <h3>Running the mn REPL<a href="#document-top" title="Go to top"></a></h3>
<p>To start the <em>mn</em> REPL, run <span class="cmd">mn</span> with no arguments. You will be presented with a prompt displaying the path to the current directory:</p> -<div class="mn-terminal"><p>mn v$version +<div class="mn-terminal"><p>mn v0.2.0 <span class="prompt">::</span></p></div> <p>You can type <em>mn</em> code and press <span class="kbd">ENTER</span> to evaluate it immediately:</p>@@ -7872,10 +7872,10 @@ <div class="symbol"><p><span class="kwd"> <span class="kwd">quot</span> <strong>⇒</strong> <span class="kwd">bool</span></span></p>
<p>Assuming that <span class="kwd">quot</span> is a quotation of quotations each evaluating to a boolean value, it pushes <span class="kwd">true</span> on the stack if they all evaluate to <span class="kwd">true</span>, <span class="kwd">false</span> otherwise.</p></div> -<p><a id="mn-symbol-id-\|\"></a> -[|](class:reference-title)</p> +<p><a id="mn-symbol-id-\|\| "></a> +<span class="reference-title">|| </span></p> -<div class="symbol"><p><span class="kwd"> |<span class="kwd">quot</span> <strong>⇒</strong> <span class="kwd">bool</span></span></p> +<div class="symbol"><p><span class="kwd"> <span class="kwd">quot</span> <strong>⇒</strong> <span class="kwd">bool</span></span></p> <p>Assuming that <span class="kwd">quot</span> is a quotation of quotations each evaluating to a boolean value, it pushes <span class="kwd">true</span> on the stack if any evaluates to <span class="kwd">true</span>, <span class="kwd">false</span> otherwise.</p></div>@@ -8134,6 +8134,13 @@ <p>Defines a new symbol <span class="kwd">'sym</span>, containing the specified quotation <span class="kwd">quot</span>. Unlike with <code>let</code>, in this case <span class="kwd">quot</span> will not be quoted, so its values will be pushed on the stack when the symbol <span class="kwd">'sym</span> is pushed on the stack.</p></div>
<p>Essentially, this symbol allows you to define an symbol without any validation of constraints and bind it to a symbol.</p> +<p><a id="mn-symbol-id-lambdabind"></a> +<span class="reference-title">lambdabind</span></p> + +<div class="symbol"><p><span class="kwd"> <span class="kwd">quot</span> <span class="kwd">'sym</span> <strong>⇒</strong> ∅</span></p> + +<p>Binds the specified quotation (unquoted) to an existing symbol <span class="kwd">'sym</span>.</p></div> + <p><a id="mn-symbol-id-length"></a> <span class="reference-title">length</span></p>@@ -8341,7 +8348,7 @@
<p>Writes <span class="kwd">str<sub>1</sub></span> to the file <span class="kwd">str<sub>2</sub></span>, erasing all its contents first.</p></div> </div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco – April 1, 2021</p> + <p><span class="copy"></span> Fabio Cevasco – April 24, 2021</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>