From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 826 invoked by alias); 30 Dec 2017 23:32:50 -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: List-Unsubscribe: X-Seq: 23040 Received: (qmail 15183 invoked by uid 1010); 30 Dec 2017 23:32:50 -0000 X-Qmail-Scanner-Diagnostics: from mail.epopia.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(137.74.101.162):SA:0(-1.9/5.0):. Processed in 7.048267 secs); 30 Dec 2017 23:32:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psychoslave@culture-libre.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Subject: Re: Can zsh `else` reserved keyword command be aliased and the lexem itself be repurposed as `fi` keyword command? To: Ray Andrews , zsh-users@zsh.org References: <71ef7896-39f8-66fe-f8f8-c7c81b11e2ce@culture-libre.org> <918acbfa-b637-1d13-816b-c6edee0afa5c@culture-libre.org> <81beaeae-6507-c961-b6fd-5831ba58e045@eastlink.ca> <049465fb-b49d-9984-73ce-fd5672bec01a@eastlink.ca> <5c2a86f8-d5b3-474b-8aac-3751968a1120@culture-libre.org> <9b45b0dd-e396-6a1a-9bad-487fec982624@eastlink.ca> From: mathieu stumpf guntz Message-ID: Date: Sun, 31 Dec 2017 00:32:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <9b45b0dd-e396-6a1a-9bad-487fec982624@eastlink.ca> Content-Type: multipart/alternative; boundary="------------D609B0ED7EF71815A28BA83C" Content-Language: fr-FR --------------D609B0ED7EF71815A28BA83C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Le 31/12/2017 à 00:06, Ray Andrews a écrit : > On 30/12/17 02:23 PM, mathieu stumpf guntz wrote: >> >>> #define define "undefine" >>>   #define undefine "define" >>>   alias alias="this must surely be forbidden" >> >> There are only a few things that must be intepreted in a clearly >> defined consensual way for a very limited and well specified context. > > Do we have a list of these? I guess there is a formal definition of the zsh grammar somewhere, like an EBNF or something. Then that is the consensus on top on which you can build anything that is not unparsable according to that grammar. And zsh most probably is TuringComplete so basically you might build anything with it, including a parser for an other programming language. But the important thing for the internationalisation research underlying this experimentation is "how much can you localise the programming interface in an integrated way, that is how much the localised version works (and bugs) as the non-localised version?" --------------D609B0ED7EF71815A28BA83C--