From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21659 invoked by alias); 30 Nov 2015 16:50:26 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21022 Received: (qmail 7738 invoked from network); 30 Nov 2015 16:50:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=Uh/wpEIUX9UX0FOdpsyW1Q==:117 a=Uh/wpEIUX9UX0FOdpsyW1Q==:17 a=N659UExz7-8A:10 a=TrbaS1tsfxxtrkP7MRwA:9 a=pILNOxqGKmIA:10 Message-id: <565C7E4E.6050603@eastlink.ca> Date: Mon, 30 Nov 2015 08:50:22 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: lexing References: <565B18C6.6090707@eastlink.ca> <151129100735.ZM24525@torch.brasslantern.com> <565BB016.6020905@eastlink.ca> <20151130033348.GJ2504@tarsus.local2> <565BCE96.4070406@eastlink.ca> <565BD4C5.1070608@eastlink.ca> <151130082354.ZM28358@torch.brasslantern.com> In-reply-to: <151130082354.ZM28358@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 11/30/2015 08:23 AM, Bart Schaefer wrote: > On Nov 29, 8:47pm, Ray Andrews wrote: > } > } $(( ##\e )) is 27, > } (( #VAR )) > } $(( #var )) > } > } ... but, given that there is preceding whitespace, would these three not > } break Bart's rule? Perhaps the whitespace here is does not qualify as > } 'word separating'? Or is the " $(()) " construct an exception? > > The whitespace is not "word separating" because (( stuff )) is shorthand > for > let "stuff" > so the spaces are quoted, at the level at which comments apply. $(( )) > is just a way to substitute inline the "let". > I thought of that construction as 'math'. But ... well nuts, so it is, and so is 'let' but with the implied quotation. So visually it's a gotcha, but not a very deep gotcha. So it's an exception but it should be simple enough to lex. Mysteries evaporate when one sees what's under the hood.