all repos — min @ 015e42785fc347103358294da0ae5f478b5430d6

A small but practical concatenative programming language.

Updating docs.
Fri, 21 Jul 2023 16:40:06 +0200




2 files changed, 9 insertions(+), 0 deletions(-)

jump to
M site/contents/reference-io.mdsite/contents/

@@ -82,6 +82,8 @@

{#op||putchr||{{s}}||{{any}}|| Prints {{s}} to STDOUT without printing a new line ({{s}} must contain only one character).#} +{#alias||read||fread#} + {#op||type||{{any}}||{{s}}|| Puts the data type of {{any}} on the stack. In cased of typed dictionaries, the type name is prefixed by `dict:`, e.g. `dict:module`, `dict:socket`, etc.#}

@@ -97,3 +99,5 @@ #}

{#op||warn||{{any}}||{{any}}|| Prints {{any}} and a new line to STDERR, if logging level is set to [warn](class:kwd) or lower.#} + +{#alias||write||fwrite#}
M site/contents/reference-lang.mdsite/contents/

@@ -234,6 +234,8 @@ Defines a new symbol {{sl}}, containing the specified quotation {{q}}. Unlike with `define`, 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 operator without any validation of constraints and bind it to a symbol.#} +{#alias||lambdabind||lambda-bind#} + {#op||lambda-bind||{{q}} {{sl}}||{{none}}|| Binds the specified quotation to an existing symbol {{sl}} which was previously-set via `lambda`. #}

@@ -366,6 +368,9 @@ Exits the program or shell with 0 as return code. #}

{#op||quote||{{any}}||({{any}})|| Wraps {{any}} in a quotation. #} + +{#op||quotecmd||{{s}}||({{sym}})|| +Creates a command with the value of {{s}} and wraps it in a quotation. #} {#op||quotesym||{{s}}||({{sym}})|| Creates a symbol with the value of {{s}} and wraps it in a quotation. #}