diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-28 15:16:31 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-28 15:16:31 -0400 |
| commit | 038066e41e654b1288939a38af6da9329a26f4bf (patch) | |
| tree | 3a782266065433044438a265e9af9e1c68bb9928 /src | |
| parent | 5199bc3835b6509f01560660750cd102cd5cf033 (diff) | |
Get provided primitives from needed names in bqn.bqn
Diffstat (limited to 'src')
| -rwxr-xr-x | src/cjs.bqn | 4 | ||||
| -rwxr-xr-x | src/pr.bqn | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/cjs.bqn b/src/cjs.bqn index cb7b1a79..ecdb2990 100755 --- a/src/cjs.bqn +++ b/src/cjs.bqn @@ -29,8 +29,8 @@ Long ← ∾ (≠↑1‿3/⟨" "⊸∾⋄((@+10)∾" ,")⊸∾⟩˙) {𝕎𝕩} LFC ← Long∘Fout∘Comp RT ← {𝕩 - prims‿ref←•Import"pr.bqn" ⋄ l←≠∾prims - Long "provide"⊸Cat⌾(1⊸⊑) Fout l⊸↓⌾(1⊸⊑) (↕l) prims _getComp ref + src‿need←•Import"pr.bqn" ⋄ l←≠∾need + Long "provide"⊸Cat⌾(1⊸⊑) Fout l⊸↓⌾(1⊸⊑) (↕l) need _getComp src } CArg ← {J (¯5⊸↓∾𝕩˙)⌾⊑ •FLines "c.bqn"} SVG ← {∾⟨"Modify←GetHighlights←⊢⋄"⟩∾ •FChars∘∾⟜".bqn"¨ "../svg"‿𝕩} @@ -12,7 +12,7 @@ alias‿def ← (⊑¨ ≍○< 1⊸↓¨) ⟨"?Type","∩Fill","⍣Log", keep ← "!+-×÷⋆⌊=≤≢⥊⊑↕⌜`⊘⎊" type ← ((+´·∧`'_'=0‿¯1⊸⊏)¨def) ∾ chrs((+`≠¨)∘⊣⍋∾⊸⊐)keep -prims ⇐ type ⊔ alias∾keep +need ⇐ type ⊔ alias∾keep GetRepls ← { c‿n ← 𝕩 @@ -25,5 +25,5 @@ GetRepls ← { gd ← "glyphs←"""∾glyphs∾"%""" rslt ← "⟨"∾"⟩"«∾","⊸∾¨glyphs # Output all primitives rr ← •FLines¨ "r0.bqn"‿"r1.bqn" -src ← ∾⟨⟨gd⟩,∾rr,⟨"{PrimInd↩⊑𝕩⊐<⋄𝕩‿SetPrims}"∾rslt⟩⟩ -ref ⇐ ∾∾⟜(@+10)¨ E_proc¨ src +raw ← ∾⟨⟨gd⟩,∾rr,⟨"{PrimInd↩⊑𝕩⊐<⋄𝕩‿SetPrims}"∾rslt⟩⟩ +src ⇐ ∾∾⟜(@+10)¨ E_proc¨ raw |
