aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-14 10:19:36 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-14 10:19:36 -0400
commit2ceec9693940c132c4cc8be71e8d7aed074e411e (patch)
tree6b0ff4a8846d06c0ae67ad3be1875adc1583aa44
parente68560de31de98047053efbc02b791c47efe7ac4 (diff)
dzaima/BQN now supports shifts
-rwxr-xr-xdc.bqn2
-rwxr-xr-xdzref5
-rwxr-xr-xsrc/cjs.bqn2
3 files changed, 3 insertions, 6 deletions
diff --git a/dc.bqn b/dc.bqn
index b8ac982c..bb2c9568 100755
--- a/dc.bqn
+++ b/dc.bqn
@@ -6,7 +6,7 @@
# - dzaima/BQN uses variable names instead of counts (but we make the
# names up anyway, except for special names).
-compile ← ⟨•path∾"src/c.bqn"⟩ •EX •path∾"dzref"
+compile ← •EX •path∾"src/c.bqn"
prims ← (•EX •path∾"dzref"){𝔽} "⟨
+,-,×,÷,⋆,√,⌊,⌈,|,¬,∧,∨,<,>,≠,=,≤,≥,≡,≢,⊣,⊢,⥊,∾,≍,↑,↓,↕,«,»,⌽,⍉,/,⍋,⍒,⊏,⊑,⊐,⊒,∊,⍷,⊔,!
˙,˜,˘,¨,⌜,⁼,´,˝,`
diff --git a/dzref b/dzref
index d04764ca..863597e8 100755
--- a/dzref
+++ b/dzref
@@ -1,9 +1,6 @@
#!/usr/bin/env dbqn
impl ← "
-» ← {!1≤=𝕩 ⋄ ( ≠𝕩)↑(1↑0↑𝕩)∾𝕩} ⊘ {!𝕨1⊸⌊⊸≤○=𝕩 ⋄ ( ≠𝕩)↑𝕨∾𝕩}
-« ← {!1≤=𝕩 ⋄ (-≠𝕩)↑𝕩∾(1↑0↑𝕩)} ⊘ {!𝕨1⊸⌊⊸≤○=𝕩 ⋄ (-≠𝕩)↑𝕩∾𝕨}
-
#⌜
# LAYER 4: Operators
@@ -71,7 +68,7 @@ raw ← {⍎}
X ← {F:≤4}
{v:
chrs←⟨
- "»«↕⊐⊒∊⍷"
+ "↕⊐⊒∊⍷"
""
"⚇"
diff --git a/src/cjs.bqn b/src/cjs.bqn
index 1c39c362..fc9db6f1 100755
--- a/src/cjs.bqn
+++ b/src/cjs.bqn
@@ -1,6 +1,6 @@
#! /usr/bin/env dbqn
-compile ← ⟨•path∾"c.bqn"⟩ •EX •path∾"../dzref"
+compile ← •EX •path∾"c.bqn"
Comp ← ((<"runtime["∾⍕∾"]"˙)¨↕62)⊸Compile
FP ← ∞⊸=◶⟨⍕,"Infinity"⟩
Esc ← (⟨"\t","\n","\r","\'","\"""⟩∾<∘⥊)⊑˜("'"""∾˜@+9‿10‿13)⊑∘⊐⊢