Hi,

Fabien COUTANT wrote:

> I am talking about {m}/{m,}/{m,n} at the place where you use ?, *
> or +.
> 
> The sample program:
> 
>     BEGIN {
>       s="abacab"
>       r1="(a[bc]){2,3}"
>       r2="(a[bc])(a[bc])+"
>       print s~r1, s~r2
>     }
> 
> should print "1 1" but it doesn't.

With Aleksey Cheusov’s patch, this can be fixed by using libc regexp,
but ideally I would like mawk’s internal regexp to handle this, too.
I have a skeleton of an implementation mocked up, but I stopped when
the relationship between REcompile and RE_lex started getting ugly and
I ran out of time.  How should the pair of interval endpoints be
passed from RE_lex to REcompile?  And how should they be stored on the
op_stack?  Ideas welcome.

Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to