aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-23 20:48:58 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-23 20:48:58 -0500
commit258b7f6e4f3c9a74d6abbc0c6ca472ecf3f6216c (patch)
treee9163155678d2927f4ecb947a57c3daa2fb6082f /src
parent82dfe7da57b4af57d002ec9235c6035c6a1e8364 (diff)
Header comments
Diffstat (limited to 'src')
-rw-r--r--src/c.bqn6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c.bqn b/src/c.bqn
index 0ad1a8c9..70e02b11 100644
--- a/src/c.bqn
+++ b/src/c.bqn
@@ -192,11 +192,11 @@ Parse ← {r‿vn‿i‿e‿def←𝕨⋄nv←≠vn
"Header left argument without right"_err_(HI) ha>hc+`⊸⊏hx∾0
"Header operation must be a plain name"_err_(HI) hma>hk≠2
ut/˜↩hm
- cwh←(2×2=ut)⌈hc/»hl⌈ha×1+he←0≠hk
+ cwh←(2×2=ut)⌈hc/»hl⌈ha×1+he←0≠hk # ↓ for just headers
cw←cwh⌾(ch⊸/)1+-⟜«(»cq)<1(⊢<«)cf # Body 𝕨: 0 no, 1 allowed, 2 required
hl/˜↩hm
- hx∨↩1=hr⋄hu←(¬he)⌾(hi⊸⊏)hf
- hj←gi⊏˜he/hi⋄hd←2=he/hk
+ hx∨↩1=hr⋄hu←(¬he)⌾(hi⊸⊏)hf # hu: mask of header special names
+ hj←gi⊏˜he/hi⋄hd←2=he/hk # hj: header assignments; hd: which ones destructure
# Block properties
ss←0‿3‿5‿6⍋(⊢+(0<hk)×hv⊸-)⌾(hi⊸⊏)𝕩-⊑bI # Special name