diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-12-01 21:43:10 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-12-01 21:57:31 -0500 |
| commit | ad3be255fc529c0fae38c7f71e66545d94afb6e4 (patch) | |
| tree | 75b6422f33c801217f5c03c12bbf2cde7b991dd2 /spec/grammar.md | |
| parent | c53801af74f4e7e6debed7b5ec81e64302da49a5 (diff) | |
Allow parens around assignment target
Diffstat (limited to 'spec/grammar.md')
| -rw-r--r-- | spec/grammar.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/grammar.md b/spec/grammar.md index 7f9fc198..541a88fd 100644 --- a/spec/grammar.md +++ b/spec/grammar.md @@ -54,13 +54,13 @@ Subject expressions are complicated by the possibility of list and namespace ass nothing = "·" | ( subject | nothing )? Derv nothing NAME = s | F | _m | _c_ - LHS_ANY = NAME | "·" | lhsList + LHS_ANY = NAME | "·" | lhsList | "(" LHS_ELT ")" LHS_ATOM = LHS_ANY | "(" lhsStr ")" LHS_ELT = LHS_ANY | lhsStr LHS_ENTRY= LHS_ELT | lhs "⇐" NAME lhsStr = LHS_ATOM ( "‿" LHS_ATOM )+ lhsList = "⟨" ⋄? ( ( LHS_ENTRY ⋄ )* LHS_ENTRY ⋄? )? "⟩" - lhs = s | "·" | lhsList | lhsStr + lhs = s | "·" | lhsList | lhsStr | "(" lhs ")" subExpr = arg | lhs ASGN subExpr | lhs Derv "↩" subExpr? # Modified assignment |
