gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] [PATCH] my-project-id


From: Tom Lord
Subject: Re: [Gnu-arch-users] [PATCH] my-project-id
Date: Sat, 24 Apr 2004 19:06:17 -0700 (PDT)

    > From: Russell <address@hidden>

    > On Fri, Apr 23, 2004 at 11:51:32AM -0700, Tom Lord wrote:
    > ...
    > > Please note that the parser for regexp sets has to be carefully
    > > designed.  For example, "/" terminates an archive regexp but not just
    > > any "/".

    > > This is a _category_ regexp set:

    > >         foo.*[/xyz]

    > Is this a category regexp set because it can match fooxABC which is a
    > category name?  It will obviously also match foo/ABC, but that should be
    > coded around so we never attempt to match the project name
    > "address@hidden/ABC--a--1" against it?  Is that right?

I think you've got it but let me just redundently spew stuff back at
you to be sure.

It's a category regexp not because of what it can match, but because
it doesn't contain a "/" which is a delimeter of the regexp.

This is a category regexp:

        foo.*[/xyz]

this is an archive regexp:

        foo.*[/xyz]/

this is an archive+category regexp set:

        foo.*[/xyz]/foo.*[/xyz]

and this is an archive+category+branch regexp set:

        foo.*[/xyz]/foo.*[/xyz]--foo.*[/xyz]

The point is that '/' is sometimes a delimeter and sometimes not ---
you have to (somewhat, not precisely) parse the regexp to tell whether
a given / is a delimeter.

Oh, and, this is just an error:

        foo.*[/


    > > but this is an _archive_plus_category_ regexp set:
    > >         foo.*/xyz
    > 
    > Yes.
    > 
    > > And, this is a _category_plus_branch_ regexp set:
    > >         foo--bar
    > 
    > Yes.
    > 
    > > but this is a _category_ regexp set:
    > >          foo[--b]ar
    > 
    > Yuk.  You're right, but yuk.


Right^3

-t








reply via email to

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