all repos — min @ 50126047033d60b86026994d7178dc0ea2c2fa80

A small but practical concatenative programming language.

Preparing for release.
h3rald h3rald@h3rald.com
Sun, 12 Aug 2018 13:22:48 +0200
commit

50126047033d60b86026994d7178dc0ea2c2fa80

parent

802092c1abaea2ae7433164f644c75390722df76

3 files changed, 8 insertions(+), 5 deletions(-)

jump to
M min.nimblemin.nimble

@@ -1,6 +1,6 @@

# Package -version = "0.18.0" +version = "0.19.0" author = "Fabio Cevasco" description = "A tiny concatenative programming language and shell." license = "MIT"

@@ -8,7 +8,7 @@ bin = @["min"]

# Dependencies -requires "nim >= 0.18.0" +requires "nim >= 0.19.0" requires "nifty" before install:
M site/contents/learn-quotations.mdsite/contents/learn-quotations.md

@@ -42,6 +42,6 @@ This programs returns a new quotation containing all odd numbers contained in quotation `(1 2 3 4 5 6 7)`.

In this case, the second quotation is used to _quote_ the symbol `odd?` so that instead of being executed immediately, it will be executed by the symbol `filter` on each element of the first quotation. In this way, we may say that `(odd?)` is _dequoted_ by the symbol `filter`. -The synbol {#link-operator||lang||dequote#} or its alias `->` can be used to dequote a quotation by pushing all its element on the main stack, while the symbol {#link-operator||lang||apply#} can be used to dequote a quotation by pushing its element on a separate stack. +The synbol {#link-operator||lang||dequote#} or its alias `->` can be used to dequote a quotation by pushing all its element on the main stack, while the symbol {#link-operator||lang||apply#} can be used to dequote a quotation by pushing its elements on a separate stack. {#link-learn||definitions||Definitions#}
M site/contents/reference-lang.mdsite/contents/reference-lang.md

@@ -40,8 +40,11 @@ {#sig||=||quote-define#}

{#alias||=||quote-define#} -{#op||apply||{{q}}||({{a0p}})|| -Returns a new quotation {{q}} obtained by evaluating each element of {{q}} in a separate stack.#} +{#op||apply||{{q}}|{{d}}||({{a0p}})|{{{a0p}}}|| +> This operator can be used on quotations or dictionaries: +> +> * If a quotation {{q}} is passed, it returns a new quotation obtained by evaluating each element of {{q}} in a separate stack. +> * If a quotation {{d}} is passed, it returns a new dictionary obtained by evaluating each symbol of {{d}} in a separate stack.#} {#op||args||{{null}}||{{q}}|| Returns a list of all arguments passed to the current program.#}