Email List: Xaustin-group-lX
[All Lists]

Re: RE-ASSOC: a question about the associativity of RE concatenation

To: yyyyy@xxxxxxxxxxxxxx
Subject: Re: RE-ASSOC: a question about the associativity of RE concatenation
From: Tom Lord <yyyy@xxxxxxxxxxx>
Date: Tue, 9 Apr 2002 21:59:22 -0700 (PDT)
Cc: yyyyyyyyyyyyyy@xxxxxxxxxxxxx, yyyyyyyyyyyyyy@xxxxxxxxxxxxx, yyyyyy@xxxxxxxxxxx, yyyyy@xxxxxxxxxxxxxx, yyyyy@xxxxxxxxxx
References: <200204091857.OAA35259@raptor.research.att.com><200204092229.g39MTeX00802@shade.twinsun.com><200204092254.PAA02436@morrowfield.home><200204092340.g39Neua00876@shade.twinsun.com> <uelho8ehm.wl@AMBER.yamato.ibm.com>

       IsamU:

       Common theoretical computer science tradition seems to treat RE
       concatination as a logically associative operator, then the
       grammar may make it either left-associative or
       right-associative.

This is a good argument for what was (as I recall off the top of my
head) interpretation (2) in the RE-ASSOC question.  Specifically,
associativity is another desirable algebraic property which Posix
regexps might conceivably have, but under both variations on (1), they
don't have that property.

I think the larger problem with (2) is that it presumes too much that
just isn't supported by other language in the spec.  It would be
something new, and interesting, but not Posix regexps.

I'll leave it to someone else to chase down the references Paul gave
and see what they say about regexp languages which aren't associative.

Incidentally, I like to promote the use of more precise terminology in
this area:

        regular expressions: the simplest class in the Chompsy
                             hierarcy; the languages Kleene studied.


        regexps: the more complicated pattern languages used in, for
                 example, Perl and Posix.

-t

<Prev in Thread] Current Thread [Next in Thread>