Author: masak Date: 2009-12-06 03:39:02 +0100 (Sun, 06 Dec 2009) New Revision: 29266
Modified: docs/Perl6/Spec/S05-regex.pod Log: [S05] reverted s/actions/action/ correction Pm-7 asserts that it should be the plural. Which means Rakudo is lagging behind, not the spec. Modified: docs/Perl6/Spec/S05-regex.pod =================================================================== --- docs/Perl6/Spec/S05-regex.pod 2009-12-05 21:49:28 UTC (rev 29265) +++ docs/Perl6/Spec/S05-regex.pod 2009-12-06 02:39:02 UTC (rev 29266) @@ -16,8 +16,8 @@ Created: 24 Jun 2002 - Last Modified: 5 Dec 2009 - Version: 111 + Last Modified: 6 Dec 2009 + Version: 112 This document summarizes Apocalypse 5, which is about the new regex syntax. We now try to call them I<regex> rather than "regular @@ -3779,9 +3779,9 @@ =item * A string can be matched against a grammar by calling C<.parse> on the grammar, -and optionally pass an I<action> object to that grammar: +and optionally pass an I<actions> object to that grammar: - MyGrammar.parse($str, :action($action-object)) + MyGrammar.parse($str, :actions($action-object)) Whenever a closure within the grammar returns a C<Whatever> object, the grammar engine tries to call a method of the same name as the name of the @@ -3807,7 +3807,7 @@ make 2 * $/.ast; } } - Integer.parse('21', :action(Twice.new)).ast # 42 + Integer.parse('21', :actions(Twice.new)).ast # 42 A C<{*}> is assumed at the end of every rule, and the method is called with no tag argument. Note that the implicit C<{*}> is