aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-12 22:03:37 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-12 22:05:46 -0500
commit624c8d09f2f8a0268865b326dbfcae5ff0f054d7 (patch)
tree764009ada6964960a32a7c2bb0de825ad714bf0c /test
parente068da960323526bd7221e2a3a3c09a81c0a72a6 (diff)
Adjust Decompose and Glyph in the runtime under dzaima/BQN to search for runtime primitives
Diffstat (limited to 'test')
-rwxr-xr-xtest/dz_comp20
1 files changed, 11 insertions, 9 deletions
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 ← {⍎𝕩}