From cea204e979899113614c4f7c5dd1ba25ff61e659 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 12 Oct 2020 21:32:44 -0400 Subject: =?UTF-8?q?Use=20=E2=87=90=20instead=20of=20:=20for=20namespace=20?= =?UTF-8?q?destructuring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/spec/grammar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/spec/grammar.html b/docs/spec/grammar.html index 42d5e817..a36e02bb 100644 --- a/docs/spec/grammar.html +++ b/docs/spec/grammar.html @@ -90,7 +90,7 @@

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 ) "⇐"
-- 
cgit v1.2.3