aboutsummaryrefslogtreecommitdiff
path: root/dc.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-22 14:10:34 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-22 14:10:34 -0400
commit6c3f798b272bc0e920791d6555ce66c7f958a5d6 (patch)
treeb0258b74fc35a18fcb8fd2c299258ac8aadf1e09 /dc.bqn
parent081237c27b912723438f498ffaa53a079a597b1b (diff)
Pass set of primitive glyphs into compiler as •args
Diffstat (limited to 'dc.bqn')
-rwxr-xr-xdc.bqn9
1 files changed, 3 insertions, 6 deletions
diff --git a/dc.bqn b/dc.bqn
index d236dcc1..2a41bbbb 100755
--- a/dc.bqn
+++ b/dc.bqn
@@ -4,12 +4,9 @@
# multiple bodies, and use variable names instead of counts.
# Rearrange and make up some names so the bytecode can be run.
-compile ← •Import "src/c.bqn"
-prims ← ⟨
- +,-,×,÷,⋆,√,⌊,⌈,|,¬,∧,∨,<,>,≠,=,≤,≥,≡,≢,⊣,⊢,⥊,∾,≍,↑,↓,↕,«,»,⌽,⍉,/,⍋,⍒,⊏,⊑,⊐,⊒,∊,⍷,⊔,!
- ˙,˜,˘,¨,⌜,⁼,´,˝,`
- ∘,○,⊸,⟜,⌾,⊘,◶,⎉,⚇,⍟
-⟩
+glyphs ← •Import "src/glyphs.bqn"
+compile ← glyphs •Import "src/c.bqn"
+prims ← •BQN∘⥊¨ ∾glyphs
special←<˘∘‿2⥊"𝕤𝕩𝕨𝕣𝕗𝕘"
DCompile⇐{