aboutsummaryrefslogtreecommitdiff
path: root/spec/grammar.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-12 21:32:44 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-12 21:32:44 -0400
commitcea204e979899113614c4f7c5dd1ba25ff61e659 (patch)
tree633cdf0c801c4b3e85c6122e0afdcf0c168415c4 /spec/grammar.md
parentc6e6558d374ed8104082817c30468625a8182f6e (diff)
Use ⇐ instead of : for namespace 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 0e210849..91cf043e 100644
--- a/spec/grammar.md
+++ b/spec/grammar.md
@@ -97,7 +97,7 @@ A braced block contains bodies, which are lists of statements, separated by semi
A namespace block is very similar in grammar to an ordinary immediate block, but allows export declarations with `⇐`, either in place of the ordinary definition `←` or in the special `EXPORT` statement. The arrow `⇐` can also be placed in the header to mark a namespace block. Since the block returns all exported values and not the result of the last line, the last line does not need to be an expression.
NS_STMT = nsLHS ASGN brNS
- NS_VAR = LHS_NAME ( ":" lhs )?
+ NS_VAR = ( lhs "⇐" )? LHS_NAME
nsLHS = LHS_NAME ( "‿" LHS_NAME )+
| "⟨" ⋄? ( ( NS_VAR ⋄ )* NS_VAR ⋄? )? "⟩"
EXPORT = ( LHS_NAME | lhsSub | lhsStr ) "⇐"