Re: Unicode bracketing spec question

2009-04-23 Thread Helmut Wollmersdorfer

Timothy S. Nelson wrote:
I note that S02 says that the unicode classes Ps/Pe are blessed to 
act as opening and closing quotes.  Is there a reason that we can't have 
Pi/Pf blessed too?  I ask because there are quotation marks in the Pi/Pf 
set that are called "Substitution" and "Transposition" which I thought 
might be cool quotes for s/// and tr/// :).


You mean

2E00 - 2E2F Supplemental Punctuation

New Testament editorial symbols
[...]
2E02 LEFT SUBSTITUTION BRACKET
2E03 RIGHT SUBSTITUTION BRACKET
[...]
2E09 LEFT TRANSPOSITION BRACKET
2E0A RIGHT TRANSPOSITION BRACKET

Cool idea.

But if you really want to use these characters, your source will be hard 
to read without exotic fonts. You have been warned;-)


Helmut Wollmersdorfer


r26384 - docs/Perl6/Spec

2009-04-23 Thread pugs-commits
Author: pmichaud
Date: 2009-04-24 00:02:51 +0200 (Fri, 24 Apr 2009)
New Revision: 26384

Modified:
   docs/Perl6/Spec/S05-regex.pod
Log:
Update goal-matching semantics to allow expression backtracking.


Modified: docs/Perl6/Spec/S05-regex.pod
===
--- docs/Perl6/Spec/S05-regex.pod   2009-04-23 21:08:31 UTC (rev 26383)
+++ docs/Perl6/Spec/S05-regex.pod   2009-04-23 22:02:51 UTC (rev 26384)
@@ -708,7 +708,7 @@
 So it really does pay attention to the left bracket as well, and it
 actually rewrites our example to something more like:
 
-$ = '('   [ $GOAL ||  ]
+$ = '('  [  $GOAL ||  ]
 
 Note that you can use this construct to set up expectations for
 a closing construct even when there's no opening bracket:



r26385 - docs/Perl6/Spec

2009-04-23 Thread pugs-commits
Author: pmichaud
Date: 2009-04-24 00:07:40 +0200 (Fri, 24 Apr 2009)
New Revision: 26385

Modified:
   docs/Perl6/Spec/S05-regex.pod
Log:
Revert previous commit -- changing the order isn't quite so straightforward.


Modified: docs/Perl6/Spec/S05-regex.pod
===
--- docs/Perl6/Spec/S05-regex.pod   2009-04-23 22:02:51 UTC (rev 26384)
+++ docs/Perl6/Spec/S05-regex.pod   2009-04-23 22:07:40 UTC (rev 26385)
@@ -708,7 +708,7 @@
 So it really does pay attention to the left bracket as well, and it
 actually rewrites our example to something more like:
 
-$ = '('  [  $GOAL ||  ]
+$ = '('   [ $GOAL ||  ]
 
 Note that you can use this construct to set up expectations for
 a closing construct even when there's no opening bracket: