develooper Front page | perl.perl6.language | Postings from May 2005

Re: comprehensive list of perl6 rule tokens

Thread Previous | Thread Next
From:
Jonathan Scott Duff
Date:
May 24, 2005 20:03
Subject:
Re: comprehensive list of perl6 rule tokens
Message ID:
20050525030328.GA31353@pobox.com
On Tue, May 24, 2005 at 08:25:03PM -0400, Jeff 'japhy' Pinyan wrote:
>   http://japhy.perlmonk.org/perl6/rules.txt

That looks completish to me.  (At least I didn't think, "hey! where's
such and such?")  

One thing that I noticed and had to look up was 

	<-prop X>

though.  Because ...

> The part which needs a bit of clarification right now, in my opinion, is 
> character classes.  From what I can gather, these are character classes:
> 
>   <[a-z] +<digit>>
>   <+<alpha> -[aeiouAEIOU]>

I believe that Larry blessed Pm's idea to allow

	<[a..z]+digit>
	<+alpha-[aeiouAEIOU]>

which implies to me that assertions starting with one of "<[",
"<-" or "<+" should be treated as character classes.  This doesn't
seem to play well with <-prop X>.  Maybe it does though.

Also, I think that it's [a..z] now rather than [a-z] but I'm not
entirely sure.  At least that's how PGE implements it.

> but I want to be sure.  I'm also curious about whitespace.  Is "<[" one 
> token, or can I write "< [a-z] >" and have it be a character class?

I think you need to write "<["

-Scott
-- 
Jonathan Scott Duff
duff@pobox.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About