On Sat, Feb 28, 2004 at 12:32:37PM -0800, Larry Wall wrote:
: Now I'm supposing that & binds tighter than | as usual, so the
: brackets wouldn't always be necessary:
: 
:     <ident> & <french>+
:     | 
:     <ident> & <swahili>+

Although, of course, that should probably be written:

    <ident> & [ <french>+ | <swahili>+ ]

or really, just

    <ident> & <<french>|<swahili>>+

That last is likely to be the fastest, since a decent implementation
of character properties should cache swatches of the bitmap like Perl 5
does, or at least memoize something somewhere to keep from having
to recalculate what's french and what's swahili...

Larry

Reply via email to