aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-24 21:33:32 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-24 21:34:17 -0500
commit35680bd835914bf96a76e145356990f945d2c785 (patch)
tree57afb0bd2fc7a9373aeb22a2cc8c054394cc51d9 /src
parent9a35ffd773718641f6aa7f2137012e58002606ef (diff)
Reject immediate block Undo header
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 0128a99b..2cb3842a 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
"Header with ˜⁼ must have left argument"_err_(HI) (hl<2=ut)>«ha
- ut/˜↩hm
+ ut/˜↩hm⋄hx∨↩1=hr
+ "Header with ⁼ must take arguments"_err_(hm/HI) hx<×ut
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 # hu: mask of header special names
+ hl/˜↩hm⋄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