From 8301f076679646a2479fdbd3cc53a0a666fb5734 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 7 Oct 2020 22:01:23 -0400 Subject: Validate function and modifier assignments --- src/c.bqn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/c.bqn b/src/c.bqn index 5a5a2152..f5ed619e 100644 --- a/src/c.bqn +++ b/src/c.bqn @@ -140,7 +140,8 @@ Parse ← {r‿nv←𝕨 oa←⌽/op←(er<2)∧r≥2⋄ro←op∨«op∧r=3 ma←tr<(𝕩=1+⊑bG)∧«ir≥1 os←↕∘≠⊸(⊣-T)⌾⌽¬ro∨ma⋄at←1+⊏⟜os⊸+/a - "Role of the two sides in assignment must match" ! (⊏⟜er≡⊏⟜r)at + "Role of the two sides in assignment must match" ! (at⊏er)≡ar←at⊏r + "Function or modifier assignment to a non-name" ! ∧´(ar=0)∨(at⊏g)⊏idm aa←g⊏asn←»+`gi⊏«⊸-(≠𝕩)↑/⁼at ta←tr∧2(>∨|)ps(⊢-T)+`¬ro fa←/(ta∨ro∨«⊸∨aa)<(r=1)∨»op -- cgit v1.2.3