develooper Front page | perl.perl6.language | Postings from March 2009

Predefined rules - clean up

Richard Hainsworth
March 8, 2009 00:45
Predefined rules - clean up
Message ID:
Various Appocalypses, Exegeses, and Synopses use rules in example codes. 
These were gathered together by PM and implemented in PGE. Larry asked 
for them to be listed in S05 & for a short description to be added. 
Timothy Nelson added them and I have just described them.

This yielded some extra changes I am documenting here.

a) Some reordering grouping similar functionality.

b) Removal of deprecated items from the S05.pod (it seems odd that a 
language Specification should declared something to be deprecated). They 
are evolutionary artifacts taken from Exegeses.

Specifically, the removed items <lt> <gt> <dot> <sp> are mentioned in 
E05. (Are simply '<' '>' '.' ' ', respectively)

c) Addition of <word> as alphanumeric plus '_' - the definition from perl5.

The definition for <wb> needed some attention.

In the PGE code <wb> is described as having the same definition as 
perl5. But perl5 documentation states
" A word boundary is a spot between two characters that has a \w  on one 
side of it and a \W  on the other side of it (in either order), counting 
the imaginary characters off the beginning and end of the string as 
matching a \W ."

Perl6 does not mention the equivalent of \w, obviously <word>, which 
yields the compliment <-word> automatically.

d) <null> and <fail> were first mentioned in the Appocalpses but changed 
to <?> and <!>. Replaced <null> and <fail> Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About