[svn:parrot] r47638 - branches/gsoc_past_optimization/docs/pct/pattern

tcurtis at svn.parrot.org tcurtis at svn.parrot.org
Tue Jun 15 07:26:25 UTC 2010


Author: tcurtis
Date: Tue Jun 15 07:26:25 2010
New Revision: 47638
URL: https://trac.parrot.org/parrot/changeset/47638

Log:
Add doc for PAST::Pattern::patternize().

Modified:
   branches/gsoc_past_optimization/docs/pct/pattern/past_pattern.pod

Modified: branches/gsoc_past_optimization/docs/pct/pattern/past_pattern.pod
==============================================================================
--- branches/gsoc_past_optimization/docs/pct/pattern/past_pattern.pod	Tue Jun 15 04:50:08 2010	(r47637)
+++ branches/gsoc_past_optimization/docs/pct/pattern/past_pattern.pod	Tue Jun 15 07:26:25 2010	(r47638)
@@ -19,6 +19,16 @@
 
 =head1 PAST::Pattern is Capture
 
+=head2 Subroutines
+
+=over 4
+
+=item C<patternize(I<value>)>
+
+Converts an object that is not a pattern(does not implement the C<ACCEPTS> method) into one that is. If I<value> does the C<invokable> role, it is used to create a C<PAST::Pattern::Closure> pattern. Otherwise, it is used to create a C<PAST::Pattern::Constant> pattern.
+
+=back
+
 =head2 Public Methods
 
 =over 4
@@ -53,7 +63,7 @@
 
 A helper method for defining attribute accessors.
 
-=item C<ACCEPTSGLOBALLY(I<node>)
+=item C<ACCEPTSGLOBALLY(I<node>)>
 
 Used by C<ACCEPTS> to implement global matching.
 


More information about the parrot-commits mailing list