diff options
| -rw-r--r-- | doc/syntax.md | 20 | ||||
| -rw-r--r-- | docs/doc/syntax.html | 20 | ||||
| -rw-r--r-- | docs/help/2-modifierrightoperand.html | 2 | ||||
| -rw-r--r-- | docs/help/beginblock.html | 2 | ||||
| -rw-r--r-- | docs/help/currentfunction.html | 2 | ||||
| -rw-r--r-- | docs/help/currentmodifier.html | 2 | ||||
| -rw-r--r-- | docs/help/endblock.html | 2 | ||||
| -rw-r--r-- | docs/help/leftargument.html | 2 | ||||
| -rw-r--r-- | docs/help/modifierleftoperand.html | 2 | ||||
| -rw-r--r-- | docs/help/rightargument.html | 2 | ||||
| -rw-r--r-- | help/2-modifierrightoperand.md | 2 | ||||
| -rw-r--r-- | help/beginblock.md | 2 | ||||
| -rw-r--r-- | help/currentfunction.md | 2 | ||||
| -rw-r--r-- | help/currentmodifier.md | 2 | ||||
| -rw-r--r-- | help/endblock.md | 2 | ||||
| -rw-r--r-- | help/leftargument.md | 2 | ||||
| -rw-r--r-- | help/modifierleftoperand.md | 2 | ||||
| -rw-r--r-- | help/rightargument.md | 2 |
18 files changed, 36 insertions, 36 deletions
diff --git a/doc/syntax.md b/doc/syntax.md index 86b88d3a..fc63ffe6 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -12,7 +12,7 @@ Here's a full table of precedence for BQN's glyphs (broader than "operator prece |-------|---------------------------------------|---------------|------------------|------- | High | Brackets | | `()⟨⟩{}[]` | | [Field access](namespace.md#imports) | Left-to-right | `.` -| | [Stranding](#list-and-array-notation) | n-ary | `‿` +| | [Stranding](arrayrepr.md#strands) | n-ary | `‿` | | Modifier | Left-to-right | `∘⎉¨´`… | `↩` in `Fn↩` | | Function | Right-to-left | `+↕⊔⍉`… | `←↩⇐` | | [Separator](token.md#separators) | | `⋄,` and newline | `?` @@ -38,19 +38,19 @@ Glyph(s) | Meaning `↩` | [Change](expression.md#assignment) `.` | Namespace [field access](namespace.md#imports) `⋄,` or newline | Statement or element [separator](token.md#separators) -`⟨⟩` | [List](#list-and-array-notation) -`[]` | [Array](#list-and-array-notation) -`‿` | [Strand](#list-and-array-notation) (lightweight list syntax) +`⟨⟩` | [List](arrayrepr.md#brackets) +`[]` | [Array](arrayrepr.md#high-rank-arrays) +`‿` | [Strand](arrayrepr.md#strands) (lightweight list syntax) `{}` | [Block](#blocks) such as a function definition `:` | [Block header](block.md#block-headers) `;` | [Block body separator](block.md#multiple-bodies) `?` | [Predicate](block.md#predicates) -`𝕨𝕎` | [Left argument](#blocks) -`𝕩𝕏` | [Right argument](#blocks) -`𝕤𝕊` | [Function self-reference](#blocks) -`𝕗𝔽` | [Left operand of a modifier](#blocks) -`𝕘𝔾` | [Right operand of a 2-modifier](#blocks) -`𝕣` | [Modifier self-reference](#blocks) +`𝕨𝕎` | [Left argument](block.md#arguments) +`𝕩𝕏` | [Right argument](block.md#arguments) +`𝕤𝕊` | [Function self-reference](block.md#self-reference) +`𝕗𝔽` | [Left operand of a modifier](block.md#operands) +`𝕘𝔾` | [Right operand of a 2-modifier](block.md#operands) +`𝕣` | [Modifier self-reference](block.md#self-reference) ## Tokens diff --git a/docs/doc/syntax.html b/docs/doc/syntax.html index ef6c1804..26af7c42 100644 --- a/docs/doc/syntax.html +++ b/docs/doc/syntax.html @@ -35,7 +35,7 @@ </tr> <tr> <td></td> -<td><a href="#list-and-array-notation">Stranding</a></td> +<td><a href="arrayrepr.html#strands">Stranding</a></td> <td>n-ary</td> <td><code><span class='Ligature'>‿</span></code></td> <td></td> @@ -134,15 +134,15 @@ </tr> <tr> <td><code><span class='Bracket'>⟨⟩</span></code></td> -<td><a href="#list-and-array-notation">List</a></td> +<td><a href="arrayrepr.html#brackets">List</a></td> </tr> <tr> <td><code><span class='Bracket'>[]</span></code></td> -<td><a href="#list-and-array-notation">Array</a></td> +<td><a href="arrayrepr.html#high-rank-arrays">Array</a></td> </tr> <tr> <td><code><span class='Ligature'>‿</span></code></td> -<td><a href="#list-and-array-notation">Strand</a> (lightweight list syntax)</td> +<td><a href="arrayrepr.html#strands">Strand</a> (lightweight list syntax)</td> </tr> <tr> <td><code><span class='Brace'>{}</span></code></td> @@ -162,27 +162,27 @@ </tr> <tr> <td><code><span class='Value'>𝕨</span><span class='Function'>𝕎</span></code></td> -<td><a href="#blocks">Left argument</a></td> +<td><a href="block.html#arguments">Left argument</a></td> </tr> <tr> <td><code><span class='Value'>𝕩</span><span class='Function'>𝕏</span></code></td> -<td><a href="#blocks">Right argument</a></td> +<td><a href="block.html#arguments">Right argument</a></td> </tr> <tr> <td><code><span class='Value'>𝕤</span><span class='Function'>𝕊</span></code></td> -<td><a href="#blocks">Function self-reference</a></td> +<td><a href="block.html#self-reference">Function self-reference</a></td> </tr> <tr> <td><code><span class='Value'>𝕗</span><span class='Function'>𝔽</span></code></td> -<td><a href="#blocks">Left operand of a modifier</a></td> +<td><a href="block.html#operands">Left operand of a modifier</a></td> </tr> <tr> <td><code><span class='Value'>𝕘</span><span class='Function'>𝔾</span></code></td> -<td><a href="#blocks">Right operand of a 2-modifier</a></td> +<td><a href="block.html#operands">Right operand of a 2-modifier</a></td> </tr> <tr> <td><code><span class='Value'>𝕣</span></code></td> -<td><a href="#blocks">Modifier self-reference</a></td> +<td><a href="block.html#self-reference">Modifier self-reference</a></td> </tr> </tbody> </table> diff --git a/docs/help/2-modifierrightoperand.html b/docs/help/2-modifierrightoperand.html index e0fc5f67..7f9d7dc4 100644 --- a/docs/help/2-modifierrightoperand.html +++ b/docs/help/2-modifierrightoperand.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="mathematical-double-struck-g-𝔾"><a class="header" href="#mathematical-double-struck-g-𝔾">Mathematical Double-struck G (<code><span class='Function'>𝔾</span></code>)</a></h1> <h2 id="𝔾-2-modifier-right-operand"><a class="header" href="#𝔾-2-modifier-right-operand"><code><span class='Function'>𝔾</span></code>: 2-Modifier Right operand</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html#operands">→full documentation</a></p> <p>A variable assigned to the right operand of a 2-modifier block. <code><span class='Value'>𝕘</span></code> can be used to access the right operand as a subject.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=NSAre/CdlZh9MyAx">↗️</a><pre> <span class='Number'>5</span> <span class='Function'>+</span><span class='Brace'>{</span><span class='Value'>𝕘</span><span class='Brace'>}</span><span class='Number'>3</span> <span class='Number'>1</span> 3 diff --git a/docs/help/beginblock.html b/docs/help/beginblock.html index 28dd2474..61c3a89a 100644 --- a/docs/help/beginblock.html +++ b/docs/help/beginblock.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="left-curly-bracket-"><a class="header" href="#left-curly-bracket-">Left Curly Bracket (<code><span class='Brace'>{</span></code>)</a></h1> <h2 id="--begin-block"><a class="header" href="#--begin-block"><code><span class='Brace'>{</span> <span class='Value'>...</span></code>: Begin Block</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html">→full documentation</a></p> <p>Starts a block, which can be one of:</p> <ul> <li>Function</li> diff --git a/docs/help/currentfunction.html b/docs/help/currentfunction.html index 3d884422..181f2273 100644 --- a/docs/help/currentfunction.html +++ b/docs/help/currentfunction.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="mathematical-double-struck-s-𝕊"><a class="header" href="#mathematical-double-struck-s-𝕊">Mathematical Double-struck S (<code><span class='Function'>𝕊</span></code>)</a></h1> <h2 id="𝕊-current-function"><a class="header" href="#𝕊-current-function"><code><span class='Function'>𝕊</span></code>: Current Function</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html#self-reference">→full documentation</a></p> <p>A variable assigned to the current function block. <code><span class='Value'>𝕤</span></code> accesses the same value but has a subject role.</p> <p><code><span class='Function'>𝕊</span></code> can be used for recursion.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=RiDihpAge/CdlYogMDogMTsg8J2VqSDDlyDwnZWKIPCdlaktMX0gIyBGYWN0b3JpYWwKRiA1Cgp78J2VpOKAv/CdlaR9NA==">↗️</a><pre> <span class='Function'>F</span> <span class='Gets'>←</span> <span class='Brace'>{</span><span class='Function'>𝕊</span> <span class='Number'>0</span><span class='Head'>:</span> <span class='Number'>1</span><span class='Head'>;</span> <span class='Value'>𝕩</span> <span class='Function'>×</span> <span class='Function'>𝕊</span> <span class='Value'>𝕩</span><span class='Function'>-</span><span class='Number'>1</span><span class='Brace'>}</span> <span class='Comment'># Factorial diff --git a/docs/help/currentmodifier.html b/docs/help/currentmodifier.html index 24eb20a0..3773979c 100644 --- a/docs/help/currentmodifier.html +++ b/docs/help/currentmodifier.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="mathematical-double-struck-r-𝕣"><a class="header" href="#mathematical-double-struck-r-𝕣">Mathematical Double-struck R (<code><span class='Value'>𝕣</span></code>)</a></h1> <h2 id="𝕣-current-modifier"><a class="header" href="#𝕣-current-modifier"><code><span class='Value'>𝕣</span></code>: Current Modifier</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html#self-reference">→full documentation</a></p> <p>A variable assigned to the current modifier block. Add underscores to the beginning and/or end (<code><span class='Modifier'>_𝕣</span></code>, <code><span class='Modifier2'>_𝕣_</span></code>) to use it in a modifier role.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=K3vwnZWj4oqj8J2VqX0gNA==">↗️</a><pre> <span class='Function'>+</span><span class='Brace'>{</span><span class='Value'>𝕣</span><span class='Function'>⊣</span><span class='Value'>𝕩</span><span class='Brace'>}</span> <span class='Number'>4</span> (1-modifier block) diff --git a/docs/help/endblock.html b/docs/help/endblock.html index 3b7c3f03..2e40aca4 100644 --- a/docs/help/endblock.html +++ b/docs/help/endblock.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="right-curly-bracket-"><a class="header" href="#right-curly-bracket-">Right Curly Bracket (<code><span class='Brace'>}</span></code>)</a></h1> <h2 id="--end-block"><a class="header" href="#--end-block"><code><span class='Value'>...</span> <span class='Brace'>}</span></code>: End Block</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html">→full documentation</a></p> <p>Starts a block, which starts with <code><span class='Brace'>}</span></code>. See <a href="beginblock.html">Begin Block</a> for more details.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=e/CdlaggKyDwnZWpfSAgICMgRnVuY3Rpb24KCnvwnZWo4oC/8J2UveKAv/Cdlal9ICAgIyAxLW1vZGlmaWVyCgp78J2VqOKAv/CdlL3igL/wnZS+4oC/8J2VqX0gIyAyLW1vZGlmaWVyCgp7YSDih5AgNX0gICAjIE5hbWVzcGFjZQoKezUrNCs2fSAgICMgSW1tZWRpYXRlIGJsb2Nr">↗️</a><pre> <span class='Brace'>{</span><span class='Value'>𝕨</span> <span class='Function'>+</span> <span class='Value'>𝕩</span><span class='Brace'>}</span> <span class='Comment'># Function </span>(function block) diff --git a/docs/help/leftargument.html b/docs/help/leftargument.html index 58c60486..de0341b2 100644 --- a/docs/help/leftargument.html +++ b/docs/help/leftargument.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="mathematical-double-struck-w-𝕨"><a class="header" href="#mathematical-double-struck-w-𝕨">Mathematical Double-struck W (<code><span class='Value'>𝕨</span></code>)</a></h1> <h2 id="𝕨-left-argument"><a class="header" href="#𝕨-left-argument"><code><span class='Value'>𝕨</span></code>: Left Argument</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html#arguments">→full documentation</a></p> <p>A variable assigned to the left argument of a block. <code><span class='Function'>𝕎</span></code> can be used to access the left argument as a function.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=NSB78J2VqH0gMQoKLeKAv8O3IHvwnZWO8J2VqX3CqCA0">↗️</a><pre> <span class='Number'>5</span> <span class='Brace'>{</span><span class='Value'>𝕨</span><span class='Brace'>}</span> <span class='Number'>1</span> 5 diff --git a/docs/help/modifierleftoperand.html b/docs/help/modifierleftoperand.html index 40611bd8..40b3bc8a 100644 --- a/docs/help/modifierleftoperand.html +++ b/docs/help/modifierleftoperand.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="mathematical-double-struck-f-𝔽"><a class="header" href="#mathematical-double-struck-f-𝔽">Mathematical Double-struck F (<code><span class='Function'>𝔽</span></code>)</a></h1> <h2 id="𝔽-modifier-left-operand"><a class="header" href="#𝔽-modifier-left-operand"><code><span class='Function'>𝔽</span></code>: Modifier Left operand</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html#operands">→full documentation</a></p> <p>A variable assigned to the left operand of a modifier block. <code><span class='Value'>𝕗</span></code> can be used to access the left operand as a subject.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=NSAre/CdlZfiiqPwnZWofSAx">↗️</a><pre> <span class='Number'>5</span> <span class='Function'>+</span><span class='Brace'>{</span><span class='Value'>𝕗</span><span class='Function'>⊣</span><span class='Value'>𝕨</span><span class='Brace'>}</span> <span class='Number'>1</span> + diff --git a/docs/help/rightargument.html b/docs/help/rightargument.html index 835b2415..be05d9eb 100644 --- a/docs/help/rightargument.html +++ b/docs/help/rightargument.html @@ -6,7 +6,7 @@ <div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> <h1 id="mathematical-double-struck-x-𝕩"><a class="header" href="#mathematical-double-struck-x-𝕩">Mathematical Double-struck X (<code><span class='Value'>𝕩</span></code>)</a></h1> <h2 id="𝕩-right-argument"><a class="header" href="#𝕩-right-argument"><code><span class='Value'>𝕩</span></code>: Right Argument</a></h2> -<p><a class="fulldoc" href="../doc/syntax.html#blocks">→full documentation</a></p> +<p><a class="fulldoc" href="../doc/block.html#arguments">→full documentation</a></p> <p>A variable assigned to the right argument of a block. <code><span class='Function'>𝕏</span></code> can be used to access the right argument as a function.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=NSB78J2VqX0gMQ==">↗️</a><pre> <span class='Number'>5</span> <span class='Brace'>{</span><span class='Value'>𝕩</span><span class='Brace'>}</span> <span class='Number'>1</span> 1 diff --git a/help/2-modifierrightoperand.md b/help/2-modifierrightoperand.md index ccf28228..eae06b9a 100644 --- a/help/2-modifierrightoperand.md +++ b/help/2-modifierrightoperand.md @@ -3,7 +3,7 @@ # Mathematical Double-struck G (`𝔾`) ## `𝔾`: 2-Modifier Right operand -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md#operands) A variable assigned to the right operand of a 2-modifier block. `𝕘` can be used to access the right operand as a subject. diff --git a/help/beginblock.md b/help/beginblock.md index 2c61355a..0ec7403d 100644 --- a/help/beginblock.md +++ b/help/beginblock.md @@ -3,7 +3,7 @@ # Left Curly Bracket (`{`) ## `{ ...`: Begin Block -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md) Starts a block, which can be one of: diff --git a/help/currentfunction.md b/help/currentfunction.md index 26746577..1367c50b 100644 --- a/help/currentfunction.md +++ b/help/currentfunction.md @@ -3,7 +3,7 @@ # Mathematical Double-struck S (`𝕊`) ## `𝕊`: Current Function -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md#self-reference) A variable assigned to the current function block. `𝕤` accesses the same value but has a subject role. diff --git a/help/currentmodifier.md b/help/currentmodifier.md index ed144afa..08a77dd4 100644 --- a/help/currentmodifier.md +++ b/help/currentmodifier.md @@ -3,7 +3,7 @@ # Mathematical Double-struck R (`𝕣`) ## `𝕣`: Current Modifier -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md#self-reference) A variable assigned to the current modifier block. Add underscores to the beginning and/or end (`_𝕣`, `_𝕣_`) to use it in a modifier role. diff --git a/help/endblock.md b/help/endblock.md index b6ae5235..fff536e6 100644 --- a/help/endblock.md +++ b/help/endblock.md @@ -3,7 +3,7 @@ # Right Curly Bracket (`}`) ## `... }`: End Block -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md) Starts a block, which starts with `}`. See [Begin Block](beginblock.md) for more details. diff --git a/help/leftargument.md b/help/leftargument.md index bda7fedc..cab98057 100644 --- a/help/leftargument.md +++ b/help/leftargument.md @@ -3,7 +3,7 @@ # Mathematical Double-struck W (`𝕨`) ## `𝕨`: Left Argument -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md#arguments) A variable assigned to the left argument of a block. `𝕎` can be used to access the left argument as a function. diff --git a/help/modifierleftoperand.md b/help/modifierleftoperand.md index 1ae8efaf..42435bfc 100644 --- a/help/modifierleftoperand.md +++ b/help/modifierleftoperand.md @@ -3,7 +3,7 @@ # Mathematical Double-struck F (`𝔽`) ## `𝔽`: Modifier Left operand -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md#operands) A variable assigned to the left operand of a modifier block. `𝕗` can be used to access the left operand as a subject. diff --git a/help/rightargument.md b/help/rightargument.md index 75c5e7e3..432f8028 100644 --- a/help/rightargument.md +++ b/help/rightargument.md @@ -3,7 +3,7 @@ # Mathematical Double-struck X (`𝕩`) ## `𝕩`: Right Argument -[→full documentation](../doc/syntax.md#blocks) +[→full documentation](../doc/block.md#arguments) A variable assigned to the right argument of a block. `𝕏` can be used to access the right argument as a function. |
