guile-user
[Top][All Lists]
Advanced

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

Re: regex-case


From: Matt Wette
Subject: Re: regex-case
Date: Sat, 06 Feb 2016 14:42:58 -0800

> On Feb 6, 2016, at 11:49 AM, Marko Rauhamaa <address@hidden> wrote:

> Only two additions would be needed to make it better:
> 
> [1] Python's named substrings: (?P<name>...)
>     (<URL: https://docs.python.org/3/library/re.html?highlight=regex#reg
>     ular-expression-syntax>)
> 
> [2] Seamless constant string concatenation as in C:
> 
>     #define PREFIX "..."
>     #define MIDDLE "..."
>     #define SUFFIX "..."
>     ...
>     {
>         int status = regcomp(&reg, PREFIX MIDDLE SUFFIX, 0);
>     }
> 

[1] will be tough IMO because it is not supported by the underlying regexp 
library used by Guile.

[2] may be possible if it is supported by the Guile regexp library.  But I’m 
not sure there is a clean way to do this, given that syntax-case bindings are 
lexical.

Matt





reply via email to

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