aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-22 13:53:11 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-22 13:53:11 -0400
commit081237c27b912723438f498ffaa53a079a597b1b (patch)
tree20ea9bb06292c230670efca667577ee029ba69b0 /src
parent8279bb3326c49305444e0cbddac13b09113b68fc (diff)
Move glyph list to src/glyphs.bqn
Diffstat (limited to 'src')
-rw-r--r--src/glyphs.bqn6
-rwxr-xr-xsrc/pr.bqn6
2 files changed, 7 insertions, 5 deletions
diff --git a/src/glyphs.bqn b/src/glyphs.bqn
new file mode 100644
index 00000000..f252b8c4
--- /dev/null
+++ b/src/glyphs.bqn
@@ -0,0 +1,6 @@
+# BQN primitive glyphs: functions, 1-modifiers, 2-modifiers
+⟨
+ "+-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!"
+ "˙˜˘¨⌜⁼´˝`"
+ "∘○⊸⟜⌾⊘◶⎉⚇⍟⎊"
+⟩
diff --git a/src/pr.bqn b/src/pr.bqn
index 239f5674..e918518e 100755
--- a/src/pr.bqn
+++ b/src/pr.bqn
@@ -3,11 +3,7 @@
# Process BQN runtime
# All primitives
-chrs←⟨
- "+-×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!"
- "˙˜˘¨⌜⁼´˝`"
- "∘○⊸⟜⌾⊘◶⎉⚇⍟⎊"
-⟩
+chrs←•Import "glyphs.bqn"
glyphs ⇐ ∾chrs
# Provided values, to be passed in through the constants array