aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-01 14:27:35 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-01 14:28:30 -0500
commitc9b3328c838fb44f4ccf3d25e4d6d3e93870caad (patch)
tree74635fc8bad5d7b7ada2f09aa28e4f765d426bf5
parent7cba6760446f02070fa201d1a2ee60de04618fd4 (diff)
Color system dot • like the following identifier, if there is one
-rw-r--r--docs/running.html4
-rw-r--r--md.bqn4
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/running.html b/docs/running.html
index 368392de..45695dbc 100644
--- a/docs/running.html
+++ b/docs/running.html
@@ -14,11 +14,11 @@
<p><a href="https://github.com/dzaima/BQN/">dzaima/BQN</a> is an implementation in Java created by modifying the existing dzaima/APL. It should be easy to run on desktop Linux and Android. It is still in development and has almost complete syntax support but incomplete primitive support.</p>
<h3 id="dzaimareference-bqn">dzaima+reference BQN</h3>
<p>This repository contains a dzaima/BQN script <code><span class='Value'>dzref</span></code> that fills in the gaps in primitive support using BQN implementations of primitives that are not yet up to spec (<a href="https://github.com/mlochbaum/BQN/blob/master/spec/reference.bqn">reference implementations</a> of all primitives starting from a small set of pre-existing functions are part of BQN's specification).</p>
-<p>You can run <code><span class='Value'>dzref</span></code> from ordinary dzaima/BQN using the <code><span class='Value'>•</span><span class='Function'>Import</span></code> command; see for example <a href="https://github.com/mlochbaum/BQN/blob/master/wcshim.bqn">wcshim.bqn</a>. For testing, it is run as a Unix script, in which case it depends on an executable <code><span class='Value'>dbqn</span></code> that runs dzaima/BQN on a file argument. I use the following script, using the path to a clone of dzaima/BQN for the jar file.</p>
+<p>You can run <code><span class='Value'>dzref</span></code> from ordinary dzaima/BQN using the <code><span class='Function'>•Import</span></code> command; see for example <a href="https://github.com/mlochbaum/BQN/blob/master/wcshim.bqn">wcshim.bqn</a>. For testing, it is run as a Unix script, in which case it depends on an executable <code><span class='Value'>dbqn</span></code> that runs dzaima/BQN on a file argument. I use the following script, using the path to a clone of dzaima/BQN for the jar file.</p>
<pre><span class='Comment'>#! /bin/bash
</span>
<span class='Value'>java</span> <span class='Function'>-</span><span class='Value'>jar</span> <span class='Function'>/</span><span class='Value'>path</span><span class='Function'>/</span><span class='Value'>to</span><span class='Function'>/</span><span class='Value'>dzaima</span><span class='Function'>/BQN/BQN.jar</span> <span class='Function'>-</span><span class='Value'>f</span> <span class='String'>&quot;$@&quot;</span>
</pre>
-<p>The left argument for <code><span class='Value'>•</span><span class='Function'>Import</span></code> or the shell arguments can contain up to two arguments for the script. The first is a file to run, and the second is BQN code to be run after it.</p>
+<p>The left argument for <code><span class='Function'>•Import</span></code> or the shell arguments can contain up to two arguments for the script. The first is a file to run, and the second is BQN code to be run after it.</p>
<h3 id="bqn2ngn">BQN2NGN</h3>
<p><a href="https://github.com/mlochbaum/BQN2NGN">BQN2NGN</a> is a prototype implementation in Javascript build to experiment with the langauge, which is now abandoned.</p>
diff --git a/md.bqn b/md.bqn
index 4c5bdeb1..010e92b0 100644
--- a/md.bqn
+++ b/md.bqn
@@ -595,7 +595,9 @@ GetHighlights ← {
wt+↩ '_' = («⊸<id)/𝕩 # Modifier1 to Modifier2 based on word end
wt+↩ 5×0=wt # Shift 0 to Number
wi ← 1-˜+`id/w # Index of word containing each of /id
- col↩(wi⊏wt)⌾(id⊸/) col
+ col↩ (wi⊏wt)⌾(id⊸/) col
+ # And the system dot
+ col↩ («col) ⊣⌾((id»⊸∧𝕩='•')⊸/) col
# Tags are placed at boundaries between different colors
boundary ← ¯1⊸»⊸≠ col