diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-13 22:49:21 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-13 22:49:21 -0400 |
| commit | 38667f6fee23f3470c0a980c9f63c60c1c9ee644 (patch) | |
| tree | 246c1ea2c1666f5f8ba1039b2da0c42645e987dc /src | |
| parent | 8c4e40462e2e7628d86791ad92eed2253cb40830 (diff) | |
Require left argument if header has non-𝕨 left arg
Diffstat (limited to 'src')
| -rw-r--r-- | src/c.bqn | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -179,7 +179,8 @@ Parse ← {r‿vn‿i‿e‿def←𝕨⋄nv←≠vn "Incorrect special name"_err_(/HF) (0=hk)∧ht≠hv+⊑bI hk×↩¬hc∨hl∧0=hr # Treat subject labels like special names hm>↩hc⋄hr/˜↩hm⋄hx←(1»hc)/ha # Header-derived role hr and immediacy ¬hx - cw←(hc/»hl∨ha)⌾(ch⊸/)1+-⟜«(»ch)<1(⊢<«)cf # Body 𝕨: 0 no, 1 allowed, 2 required + cw←1+-⟜«(»ch)<1(⊢<«)cf # Body 𝕨: 0 no, 1 allowed, 2 required + cw↩(hc/»hl⌈ha×1+0<hk)⌾(ch⊸/)cw "Header left argument without right"_err_(/HF) ha>hc+`⊸⊏hx∾0 "Header operation must be a plain name"_err_(/HF) hm>hk≠2 "Only plain names allowed in headers for now!"_err_(/HF) 2=hk |
