aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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