aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-07 10:49:12 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-07 10:49:12 -0400
commitf5418e066dc393e09589ab5e7f38d23eac203ef9 (patch)
tree47f983e29a3424a72682f3c3962dae9639b28ddd
parent6e293d5c3c680e8dbe51c543f132ea25da6f1dc4 (diff)
Use normal dzaima/BQN, not dzaima+reference, to run the compiler
-rwxr-xr-xdc.bqn4
-rwxr-xr-xdzref2
2 files changed, 3 insertions, 3 deletions
diff --git a/dc.bqn b/dc.bqn
index a0fc5730..20f99afb 100755
--- a/dc.bqn
+++ b/dc.bqn
@@ -6,12 +6,12 @@
# - dzaima/BQN uses variable names instead of counts (but we make the
# names up anyway, except for special names).
-p←"⟨
+compile ← •EX •path∾"src/c.bqn"
+prims ← (•EX •path∾"dzref"){𝔽} "⟨
+,-,×,÷,⋆,√,⌊,⌈,|,¬,∧,∨,<,>,≠,=,≤,≥,≡,≢,⊣,⊢,⥊,∾,≍,↑,↓,↕,⌽,⍉,/,⍋,⍒,⊏,⊑,⊐,⊒,∊,⍷,⊔,!
˙,˜,˘,¨,⌜,⁼,´,˝,`
∘,○,⊸,⟜,⌾,⊘,◶,⎉,⚇,⍟
⟩"
-⟨Compile,prims⟩ ← ⟨•path∾"src/c.bqn","⟨Compile,"∾p∾"⟩"⟩ •EX •path∾"dzref"
special←<˘∘‿2⥊"𝕤𝕩𝕨𝕣𝕗𝕘"
DRun←{
diff --git a/dzref b/dzref
index 4bf766ae..b47a84b5 100755
--- a/dzref
+++ b/dzref
@@ -131,5 +131,5 @@ X←Raw←{F:≤4}
ExecFile←{Raw ∾ ∾⟜lf¨ E_proc¨ •LNS 𝕩}
X↩Raw∘E_proc
⍎ ∾ ∾⟜lf¨ pre
- ≠◶X‿{ExecFile ⊑𝕩}‿{ExecFile ⊑𝕩 ⋄ X 1⊑𝕩} •args
+ ≠◶(X˙)‿{ExecFile ⊑𝕩}‿{ExecFile ⊑𝕩 ⋄ X 1⊑𝕩} •args
}