aboutsummaryrefslogtreecommitdiff
path: root/src/pr.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-26 09:32:25 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-26 09:32:25 -0400
commit3fbc09952ed3db5a329195c742865732537e7664 (patch)
tree7be8898a8b297f4f5aa4d5beef93d57d8c95062e /src/pr.bqn
parent796d15378aee570675b4d0c34dd5b06c98e013dd (diff)
Define a default PrimInd from pr.bqn
Diffstat (limited to 'src/pr.bqn')
-rwxr-xr-xsrc/pr.bqn4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pr.bqn b/src/pr.bqn
index c9e13954..27e9a211 100755
--- a/src/pr.bqn
+++ b/src/pr.bqn
@@ -26,5 +26,7 @@ GetRepls ← {
⟨E_proc⟩ ← chrs‿GetRepls •Import "pp.bqn"
+gd ← "glyphs←"""∾glyphs∾"%"""
rslt ← "⟨"∾"⟩"«∾","⊸∾¨glyphs # Output all primitives
-ref ⇐ ∾∾⟜(@+10)¨ E_proc¨ (•FLines "r.bqn")∾<rslt∾"‿SetPrims"
+src ← ∾⟨⟨gd⟩,•FLines"r.bqn",⟨"{PrimInd↩⊑𝕩⊐<⋄𝕩‿SetPrims}"∾rslt⟩⟩
+ref ⇐ ∾∾⟜(@+10)¨ E_proc¨ src