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

r26384 - docs/Perl6/Spec

From:
pugs-commits
Date:
April 23, 2009 15:03
Subject:
r26384 - docs/Perl6/Spec
Message ID:
20090423220252.14569.qmail@feather.perl6.nl
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:
 
-    $<OPEN> = '(' <SETGOAL: ')'> <expression> [ $GOAL || <FAILGOAL> ]
+    $<OPEN> = '(' <SETGOAL: ')'> [ <expression> $GOAL || <FAILGOAL> ]
 
 Note that you can use this construct to set up expectations for
 a closing construct even when there's no opening bracket:




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