From 081237c27b912723438f498ffaa53a079a597b1b Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 22 Apr 2021 13:53:11 -0400 Subject: Move glyph list to src/glyphs.bqn --- src/glyphs.bqn | 6 ++++++ src/pr.bqn | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 src/glyphs.bqn (limited to 'src') 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 -- cgit v1.2.3