aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-01 09:50:45 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-01 09:50:45 -0500
commit7c29cbf557c7b2cc085c43393f428dd07410b9a2 (patch)
tree09f5499c8e62cead1eb316398f8e6b2e1d74bc45
parentdd76b41e47ec70aac3a464ee3da98d709f051f47 (diff)
dzaima/BQN •COMP now accepts instruction indices and source code
-rwxr-xr-xdc.bqn4
1 files changed, 2 insertions, 2 deletions
diff --git a/dc.bqn b/dc.bqn
index 43d694b8..06c527a6 100755
--- a/dc.bqn
+++ b/dc.bqn
@@ -13,12 +13,12 @@ prims ← (•Import "dzref"){𝔽} "⟨
special←<˘∘‿2⥊"𝕤𝕩𝕨𝕣𝕗𝕘"
DCompile⇐{
- ⟨bc,o,fblk⟩ ← 3 ↑ prims Compile 𝕩
+ ⟨bc,o,fblk,ind⟩ ← 4 ↑ prims Compile 𝕩
blk‿bdy ← <˘⍉>(↕≠fblk){
⟨t,i,l,n⟩←𝕩
s←(3×i)↓(t⊑3‿5‿6)↑special
⟨⟨t,i,𝕨,𝕨⟩ ⋄ ⟨l, s∾⥊¨'a'+↕n-≠s⟩⟩
}¨fblk
- ⟨bc,o,blk,bdy⟩
+ ⟨bc,o,blk,bdy,ind,𝕩⟩
}
DRun⇐•COMP∘DCompile