diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-23 20:48:58 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-23 20:48:58 -0500 |
| commit | 258b7f6e4f3c9a74d6abbc0c6ca472ecf3f6216c (patch) | |
| tree | e9163155678d2927f4ecb947a57c3daa2fb6082f | |
| parent | 82dfe7da57b4af57d002ec9235c6035c6a1e8364 (diff) | |
Header comments
| -rw-r--r-- | src/c.bqn | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
