Re: Named regexes and this week's contribution to Perl 6

2010-05-21 Thread Aaron Sherman
On Fri, May 21, 2010 at 1:59 PM, David Green wrote: > > I wanted to check that named regexes aren't in Rakudo yet -- I get "Useless > declaration of has-scoped regex in a module". > > > That's going to be a common first hurdle, I can see. I ran into the same thing writing a IRI parser. Here's a

Re: Named regexes and this week's contribution to Perl 6

2010-05-21 Thread David Green
On 2010-05-21, at 12:26 pm, Aaron Sherman wrote: > That's going to be a common first hurdle, I can see. > I ran into the same thing writing a IRI parser. Here's a way you can do this: > [using a Grammar] Thanks -- I thought of trying that to see what happens. (Not that I absolutely need it, but

Re: Named regexes and this week's contribution to Perl 6

2010-05-21 Thread Moritz Lenz
Hi, David Green wrote: > I thought I'd have a go at command-line parsing > (http://perlgeek.de/blog-en/perl-6/contribute-now-main-sub.html), > and I've got the basics, even though I keep trying to put P5isms in my > regexes! > (I even found a bug, but it's already reported, RT 73608.) Thanks

Named regexes and this week's contribution to Perl 6

2010-05-21 Thread David Green
I thought I'd have a go at command-line parsing (http://perlgeek.de/blog-en/perl-6/contribute-now-main-sub.html), and I've got the basics, even though I keep trying to put P5isms in my regexes! (I even found a bug, but it's already reported, RT 73608.) I wanted to check that named regexes aren