bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Regex support


From: Juergen Sauermann
Subject: Re: [Bug-apl] Regex support
Date: Fri, 22 Sep 2017 18:08:59 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi,

I have not looked into Dyalogs implementation myself, but if they
have it then we should aim at being as compatible as it makes sense.
No problem if some of their capabilities are not supported (please avoid
going over the top in the GNU APL implementation)

Unfortunately ⎕R is already occupied in GNU APL (inherited from IBM APL2),
so some other name(s) are needed.

Before implementing too much in advance, it would be good to present the
intended syntax and semantics on bug-apl and solicit opinions.

/// Jürgen


On 09/22/2017 04:59 PM, Elias Mårtenson wrote:
I did not know this. I took a look at Dyalog's API and it's not possible to implement it fully, as it relies on their object oriented features. However, the basic functionality wouldn't be hard to replicate, if that is something that is desired.

Jürgen, what is your opinion on this?

On 22 September 2017 at 20:21, Jay Foad <address@hidden> wrote:
FYI Dyalog has operators ⎕S (search) and ⎕R (replace) which are implemented with PCRE:

      ('[Aa]..'⎕S'&')'Dyalog APL'
┌───┬───┐
│alo│APL│
└───┴───┘
      ('red' 'green'⎕R'green' 'blue')'red orange yellow green blue'
green orange yellow blue blue


Jay.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]