all repos — min @ 2770eed4011fb072321fbe02f07891e9ac396d67

A small but practical concatenative programming language.

Fixed docs.
h3rald h3rald@h3rald.com
Sun, 29 Nov 2020 13:21:11 +0000
commit

2770eed4011fb072321fbe02f07891e9ac396d67

parent

513d422be4972c1d075a3d115dffe2cf99d96d52

1 files changed, 11 insertions(+), 10 deletions(-)

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

@@ -161,19 +161,19 @@

{#op||infix-dequote||{{q}}||{{any}}|| > Dequotes {{q}} using infix notation. > -> > %note% -> > No operator precedence -> > -> > No special operator preference is defined, symbols precedence is always left-to-right. However, you can use parentheses (quotes) to evaluate expressions before others. +> Note that no special operator preference is defined, symbols precedence is always left-to-right. However, you can use parentheses (quotes) to evaluate expressions before others. > -> > %sidebar% +> > %sidebar% > > Example > > > > The following program leaves `17` on the stack: -> > (2 + (3 * 5)) infix-dequote +> > +> > (2 + (3 * 5)) infix-dequote > > > > while this program leaves `25` on the stack: -> > (2 + 3 * 5) infix-dequote #} +> > +> > (2 + 3 * 5) infix-dequote + #} {#op||int||{{any}}||{{i}}|| > Converts {{any}} to an integer value based on the following rules:

@@ -237,14 +237,15 @@ {#op||parse||{{s}}||{{q}}||

Parses {{s}} and returns a quoted program {{q}}. #} {#op||prefix-dequote||{{q}}||{{any}}|| -> Dequotes {{q}} using prefix notation (essentially it reverses {{q}} and dequotes it. +> Dequotes {{q}} using prefix notation (essentially it reverses {{q}} and dequotes it). > -> > %sidebar% +> > %sidebar% > > Example > > > > The following program leaves `4` on the stack: +> > > > (* 8 4) prefix-dequote -#} + #} {#op||prompt||{{null}}||{{s}}|| > This symbol is used to configure the prompt of the min shell. By default, it is set to the following quotation: