Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Can zsh `else` reserved keyword command be aliased and the lexem itself be repurposed as `fi` keyword command?





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?"

Messages sorted by: Reverse Date, Date, Thread, Author