aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-30 10:27:47 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-30 10:27:47 -0400
commit4e254ba07aba2ee0f21cd7ec2811e279beb6a7a2 (patch)
treef3b923fd84d83c727b6d926f0a5152f037c65162 /spec
parent1c598b836ad34d87b4799bb933fe76ba0a4132f4 (diff)
Fix modified assignment spec to account for · and []
Diffstat (limited to 'spec')
-rw-r--r--spec/evaluate.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/evaluate.md b/spec/evaluate.md
index de3aca44..1a4e4669 100644
--- a/spec/evaluate.md
+++ b/spec/evaluate.md
@@ -36,7 +36,7 @@ Assignment to `lhsArray` destructures the major cells of right-hand-side value `
A destructuring assignment is performed in program order, or equivalently index order, with each sub-assignment fully completed before beginning the next (a depth-first order). Thus if an assignment with `↩` encounters an error but it's caught with `⎊`, some of the assignment may have already been performed, changing variable values.
-*Modified assignment* is the subject assignment rule `lhs Derv "↩" subExpr?`. In this case, `lhs` is evaluated as if it were a `subExpr` (the syntax is a subset of `subExpr`), and passed as an argument to `Derv`. The full application is `lhs Derv subExpr`, if `subExpr` is given, and `Derv lhs` otherwise. Its value is assigned to `lhs`, and is also the result of the modified assignment expression.
+*Modified assignment* is the subject assignment rule `lhs Derv "↩" subExpr?`. This case results in an error if `lhs` contains `"·"` or an empty `lhsArray` node (one with no `LHS_ELT` components). With these conditions, the grammar for `lhs` is a subset of `subExpr`; the node is evaluated as if it were a `subExpr`, and passed as an argument to `Derv`. The full application is `lhs Derv subExpr`, if `subExpr` is given, and `Derv lhs` otherwise. Its value is assigned to `lhs`, and is also the result of the modified assignment expression.
### Expressions