[Info-vax] DCL and scripting

Arne Vajhøj arne at vajhoej.dk
Tue Dec 11 14:44:48 EST 2018


On 12/11/2018 2:39 PM, John Reagan wrote:
> On Tuesday, December 11, 2018 at 2:15:41 PM UTC-5, Arne Vajhøj wrote:
>> On 12/11/2018 1:42 PM, Jairo Alves wrote:
>>>> DCL design and design compromises also skew heavily toward interactive
>>>> command input, and away from scripting and away from system and data
>>>> access features.  Away from modern string handling, too; no regex, no
>>>
>>> Couldn't regex be added as a lexical function?
>>
>> Yes.
>>
>> F$REGEX_MATCH would not be that difficult.
> 
> Besides the "match"/"nomatch" result, I assume you'd also like capturing syntax like you see in Perl regex strings?  (aka \1 and $1)

F$REGEX_MATCH may need some context to allow multiple calls.

And we would also need F$REGEX_REPLACE.

But if there were a desire to invest in DCL then it is doable.

> The biggest obstacle in shoving a regex into the middle of DCL is making sure the license is suitable.  For instance, we can't/won't put a piece of GPL code into DCL.EXE.

PCRE library is BSD licensed.

Arne




More information about the Info-vax mailing list