all repos — min @ 9a8876a4e551cc91bf65f3e1f478476888f9de8b

A small but practical concatenative programming language.

Added missing command aliases.
h3rald h3rald@h3rald.com
Fri, 21 Jul 2023 18:15:43 +0200
commit

9a8876a4e551cc91bf65f3e1f478476888f9de8b

parent

015e42785fc347103358294da0ae5f478b5430d6

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M site/contents/reference-stack.mdsite/contents/reference-stack.md

@@ -25,6 +25,8 @@

{#op||dup||{{a1}}||{{a1}} {{a1}}|| Duplicates the first element on the stack.#} +{#alias||getstack||get-stack#} + {#op||get-stack||{{none}}||({{a0p}})|| Puts a quotation containing the contents of the stack on the stack.#}

@@ -58,6 +60,8 @@

{#op||rollup||{{a1}} {{a2}} {{a3}}||{{a3}} {{a2}} {{a1}}|| Moves the third and second element into second and third position and moves the first element into third position.#} +{#alias||setstack||set-stack#} + {#op||set-stack||{{q}}||{{a0p}}|| Substitute the existing stack with the contents of {{q}}.#}

@@ -77,4 +81,4 @@ {#op||swap||{{a1}} {{a2}}||{{a2}} {{a1}}||

Swaps the first two elements on the stack. #} {#op||swons||({{a0p}}) {{a1}}||({{a1}} {{a0p}})|| -Prepends {{a1}} to the quotation that follows it.#}+Prepends {{a1}} to the quotation that follows it.#}