aboutsummaryrefslogtreecommitdiff
path: root/test/dc.bqn
blob: 0607dc9959a3e2f4e816d99699afbcb05bc26dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# dzaima/BQN block headers have a different format to account for
# multiple bodies, and use variable names instead of counts.
# Rearrange and make up some names so the bytecode can be run.

glyphs  •Import"../src/glyphs.bqn"(0=≠) •args
compile  glyphs •Import "../src/c.bqn"

special<˘2"𝕤𝕩𝕨𝕣𝕗𝕘"
DCompile{
  bc,o,fblk,fbdy,ind,tok  6  (𝕨 •BQN¨ glyphs) Compile 𝕩
  name  2tok
  blk  2(↑∾≍˜)¨fblk
  bdy  {l,n,d,e𝕩  l,((<"")˜n-≠d)dname,n-e}¨fbdy
  bc,o,blk,blk,bdy,name,ind,1ind,𝕩
}
DRun•COMPDCompile