From ec98071c058e68ab9f3eb62378cad09d05871ee5 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 25 Mar 2021 20:50:53 -0400 Subject: Return a setter for Decompose and Glyph from the runtime so they don't have to be defined mutably --- src/pr.bqn | 4 ++-- src/r.bqn | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/pr.bqn b/src/pr.bqn index 6e2244b9..c9e13954 100755 --- a/src/pr.bqn +++ b/src/pr.bqn @@ -11,7 +11,7 @@ chrs←⟨ glyphs ⇐ ∾chrs # Provided values, to be passed in through the constants array -def ← ⟨"Type","Decompose","Glyph","Fill","Log","GroupLen","GroupOrd","_fillBy_"⟩ +def ← ⟨"Type","Fill","Log","GroupLen","GroupOrd","_fillBy_"⟩ keep ← "!+-×÷⋆⌊=≤≢⥊⊑↕⌜`⊘" len ⇐ def+○≠keep @@ -27,4 +27,4 @@ GetRepls ← { ⟨E_proc⟩ ← chrs‿GetRepls •Import "pp.bqn" rslt ← "⟨"∾"⟩"«∾","⊸∾¨glyphs # Output all primitives -ref ⇐ ∾∾⟜(@+10)¨ E_proc¨ (•FLines "r.bqn")∾