Patrick clarified:
At any rate, I find that having a subpattern capture base its
index on the highest index of all of the previous alternation
branches is easy to understand and works well in practice. It can
also be easily changed with another alias if needed.
I strongly agree, and would be
On Fri, Feb 17, 2006 at 08:32:18AM -0600, Patrick R. Michaud wrote:
: > The synopsis says:
: >
: > * If a subrule appears two (or more) times in the same lexical scope
: > (i.e. twice within the same subpattern and alternation), or if the
: > subrule is quantified anywhere within the entire ru
On Fri, Feb 17, 2006 at 02:33:12PM +0100, H. Stelling wrote:
> Patrick R. Michaud wrote:
> >>In the following,
> >>
> >>/ (a) [ (b) (c) | $5 := (d) $0 := (e) ] (f) /
> >>
> >>does the first alias have any effect on where the f's will go
> >>(probably not)?
> >
> >I'll defer to @Larry on this one, b
Patrick R. Michaud wrote:
In the following,
/ (a) [ (b) (c) | $5 := (d) $0 := (e) ] (f) /
does the first alias have any effect on where the f's will go
(probably not)?
I'll defer to @Larry on this one, but my initial impression is
that the (f) capture would go into $6.
I think that se
On Wed, Feb 15, 2006 at 10:09:05AM +0100, H. Stelling wrote:
> - Capture numbering:
>
> /(a) [ (b) (c) (d) | (e) & (f) ] (g)/ capture.t suggests something like
> $0$1 $2 $3$1$2$4, but I'm only guessing about the
> "&" bit.
Yes.
> In the following,
>
> / (a) [ (b) (c) | $5 :
Hello,
I've stumbled upon Perl6 a couple of weeks ago and I'm really looking
forward
to seeing the finished product. Currently, I'm trying to implement a
perl-like
rules module for Python, and I've got some questions which I think aren't
covered in the Synopsis or anywhere else I looked, mostly c