aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/pr.bqn2
-rwxr-xr-xtest/dz_comp20
2 files changed, 12 insertions, 10 deletions
diff --git a/src/pr.bqn b/src/pr.bqn
index 70d7771b..25a3e138 100755
--- a/src/pr.bqn
+++ b/src/pr.bqn
@@ -10,7 +10,7 @@ chrs←⟨
"∘○⊸⟜⌾⊘◶⎉⚇⍟"
nc ← ≠¨chrs
-chr ← ∾chrs
+glyphs ⇐ chr ← ∾chrs
itr ← 0⥊˜≠chr
init ← " "⊸∾¨(/⟜"_"¨nc/0‿1‿1)∾¨(nc/"FMD")∾¨(nc+´⊸↑⥊"ABC"∾⌜•a)
diff --git a/test/dz_comp b/test/dz_comp
index ebdee6a0..67fef043 100755
--- a/test/dz_comp
+++ b/test/dz_comp
@@ -6,18 +6,20 @@ nc‿rt‿prim ← "-nocomp"‿"-rt"‿"-prim" ∊ •args
⟨DRun,DCompile⟩ ← •Import "../dc.bqn"
GetRT ← {𝕤:
- ⟨ref⟩ ← •Import "../src/pr.bqn"
+ ⟨ref,glyphs⟩ ← •Import "../src/pr.bqn"
+ PrimInd ← {⊑rt⊐<𝕩}
+ Decompose ← ((≠glyphs)>PrimInd)◶⟨•Decompose,0⊸≍⟩
provide ← ⟨
- •Type # Type
- •Decompose # Decompose
- •Glyph # Glyph
- ⊑⟨⟩⥊0⊸⥊ # GetFill
- ⋆⁼ # Log
- ≠¨⊔ # GroupLen
- ∾⊔∘⊢ # GroupOrd
+ •Type # Type
+ Decompose # Decompose
+ glyphs⊑˜PrimInd # Glyph
+ ⊑⟨⟩⥊0⊸⥊ # GetFill
+ ⋆⁼ # Log
+ ≠¨⊔ # GroupLen
+ ∾⊔∘⊢ # GroupOrd
!,+,-,×,÷,⋆,⌊,=,≤,≢,⥊,⊑,↕,⌜,`,⊘
- •COMP provide⊸(⊣»«)⌾(1⊸⊑) DCompile ref
+ rt ← •COMP provide⊸(⊣»«)⌾(1⊸⊑) DCompile ref
}
Native ← {⍎𝕩}