X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Plugin.git;a=blobdiff_plain;f=Plugin.pod;h=dec530e1554e63ce7db18a98f98b3a33117a7e0c;hp=1438f64dde0b50c647ac5e7e54f085b0148a19e5;hb=06641849094f807d8762e328b5077e54b299f5e2;hpb=dd88e700bfcc92fc03db9d994ec747ca1c14ade7 diff --git a/Plugin.pod b/Plugin.pod index 1438f64..dec530e 100644 --- a/Plugin.pod +++ b/Plugin.pod @@ -2,11 +2,6 @@ re::engine::Plugin - API to write custom regex engines -=head1 NOTICE - -This is a B that requires a patch to blead to work, -the patch can be found in F in this distribution. - =head1 DESCRIPTION As of perl 5.9.5 it's possible to lexically replace perl's built-in @@ -24,12 +19,12 @@ C or runtime for C patterns, or something inbetween depending on variable interpolation etc. When this module is loaded into a scope it inserts a hook into -C<$^H{regcomp}> (as described in L) to have each regexp -constructed in its lexical scope handled by this engine, but it -differs from other engines in that it also inserts other hooks into -C<%^H> in the same scope that point to user-defined subroutines to use -during compilation, execution etc, these are described in -L below. +C<$^H{regcomp}> (as described in L and L) to +have each regexp constructed in its lexical scope handled by this +engine, but it differs from other engines in that it also inserts +other hooks into C<%^H> in the same scope that point to user-defined +subroutines to use during compilation, execution etc, these are +described in L below. The callbacks (e.g. L) then get called with a L object as their first argument. This object @@ -56,7 +51,7 @@ caller's scope use use the following snippet: sub import { - # Populates the caller's %^H with our callbacks + # Sets the caller's $^H{regcomp} his %^H with our callbacks re::engine::Plugin->import( comp => \&comp, exec => \&exec, @@ -229,10 +224,12 @@ name an example). =head2 named_captures -B: document +B: implement -This is implemented but not documented, see F for usage -examples. +perl internals still needs to be changed to support this but when it's +done it'll allow the binding of C<%+> and C<%-> and support the +L methods FETCH, STORE, DELETE, CLEAR, EXISTS, FIRSTKEY, +NEXTKEY and SCALAR. =head1 Tainting @@ -303,11 +300,6 @@ I =item * -Export constants defined as macros in core relevant to our interests, -e.g. PMf_ stuff and things needed by extflags. - -=item * - Engines implemented with this module don't support C and C, the appropriate parts of the C struct need to be wrapped and documented. @@ -405,7 +397,7 @@ Evar ArnfjErE Bjarmason =head1 LICENSE -Copyright 2007 Evar ArnfjErE Bjarmason. +Copyright 2007-2008 Evar ArnfjErE Bjarmason. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.