diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-06-16 13:38:06 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-06-16 13:38:06 -0400 |
| commit | c3fa99d299ff88ff96d00ea791a0361f8471c298 (patch) | |
| tree | 93544e8ddb091c85f2803fca488d733730f7b40c /spec | |
| parent | e5615fc5ff0b47c331d97c1eb588ec43d590f0b3 (diff) | |
Allow zero-length destructuring []
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/grammar.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/grammar.md b/spec/grammar.md index acb00ef5..ab29d32f 100644 --- a/spec/grammar.md +++ b/spec/grammar.md @@ -68,7 +68,7 @@ The target of subject assignment can be compound to allow for destructuring. Lis LHS_ENTRY= LHS_ELT | lhs "⇐" NAME lhsStr = LHS_ATOM ( "‿" LHS_ATOM )+ lhsList = "⟨" ⋄? ( ( LHS_ENTRY ⋄ )* LHS_ENTRY ⋄? )? "⟩" - lhsArray = "[" ⋄? ( LHS_ELT ⋄ )* LHS_ELT ⋄? "]" + lhsArray = "[" ⋄? ( ( LHS_ELT ⋄ )* LHS_ELT ⋄? )? "]" lhsComp = LHS_SUB | lhsStr | "(" lhs ")" lhs = s | lhsComp |
