all repos — mn @ 426c8a287d4b8b07a40324051b4361379b3cd60f

A truly minimal concatenative programming language.

Docfixes
h3rald h3rald@h3rald.com
Fri, 02 Apr 2021 20:34:57 +0000
commit

426c8a287d4b8b07a40324051b4361379b3cd60f

parent

115c22fbfd465f652cd6c28313cb0f6754dcc8e2

4 files changed, 18 insertions(+), 7 deletions(-)

jump to
M docs/about.mddocs/about.md

@@ -50,8 +50,8 @@ * a basic REPL

## Who? -{{m}} was created and implemented by [Fabio Cevasco](https://h3rald.com), +{{m}} was created and implemented by [Fabio Cevasco](https://cevasco.org). ## When? -{{m}} source code [repository](https://github.com/h3rald/mn) was created on March 23^rd 2021.+{{m}} source code [repository](https://github.com/h3rald/mn) was created on March 23^rd 2021.
M docs/get-started.mddocs/get-started.md

@@ -26,7 +26,7 @@

To start the {{m}} REPL, run [mn](class:cmd) with no arguments. You will be presented with a prompt displaying the path to the current directory: > %mn-terminal% -> mn v$version +> mn v{{$version}} > [::](class:prompt) You can type {{m}} code and press [ENTER](class:kbd) to evaluate it immediately:

@@ -56,4 +56,4 @@ {{m}} also supports running programs from standard input, so the following command can also be used (on Unix-like system) to run a program saved in [myfile.mn](class:file):

> %mn-terminal% > -> [$](class:prompt) cat myfile.mn | mn+> [$](class:prompt) cat myfile.mn | mn
M docs/reference.mddocs/reference.md

@@ -87,10 +87,9 @@ {#op||!=||{{a1}} {{a2}}||{{b}}||

Returns {{t}} if {{a1}} is not equal to {{a2}}, {{f}} otherwise. #} {#op||&&||{{q}}||{{b}}|| -Assuming that {{q}} is a quotation of quotations each evaluating to a boolean value, it pushes {{t}} on the stack if they all evaluate to {{t}}, {{f}} otherwise. - #} +Assuming that {{q}} is a quotation of quotations each evaluating to a boolean value, it pushes {{t}} on the stack if they all evaluate to {{t}}, {{f}} otherwise. #} -{#op||\|\|||{{q}}||{{b}}|| +{#op|| \|\| ||{{q}}||{{b}}|| Assuming that {{q}} is a quotation of quotations each evaluating to a boolean value, it pushes {{t}} on the stack if any evaluates to {{t}}, {{f}} otherwise. #}

@@ -228,6 +227,9 @@ {#op||lambda||{{q}} {{sl}}||{{none}}||

Defines a new symbol {{sl}}, containing the specified quotation {{q}}. Unlike with `let`, in this case {{q}} will not be quoted, so its values will be pushed on the stack when the symbol {{sl}} is pushed on the stack. Essentially, this symbol allows you to define an symbol without any validation of constraints and bind it to a symbol.#} + +{#op||lambda-bind||{{q}} {{sl}}||{{none}}|| +Binds the specified quotation (unquoted) to an existing symbol {{sl}}.#} {#op||length||{{sl}}||{{i}}|| Returns the length of {{sl}}.#}
A tasks/h3rald.mn

@@ -0,0 +1,9 @@

+ + +( + "Copying developer guide.." puts pop + "cp Mn_DeveloperGuide.htm ../h3rald/assets/mn/" run + "cp Mn_DeveloperGuide.htm ../h3rald/output/mn/" run + "Done." puts pop + +) (h3rald__default) lambda