aboutsummaryrefslogtreecommitdiff
path: root/spec/grammar.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-16 13:38:06 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-18 16:38:12 -0400
commitb5eecc8e7d7aa2975dc48cd734530306770fc13a (patch)
treec4e44dd246aef730a942edbb71c240f79643e119 /spec/grammar.md
parent3e541fb767357ab01c85abddb01cb91c95ba01e6 (diff)
Allow zero-length destructuring []
Diffstat (limited to 'spec/grammar.md')
-rw-r--r--spec/grammar.md2
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