From: Robin Edwards Date: Fri, 18 Dec 2009 18:27:23 +0000 (+0000) Subject: updated readme X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0b8bf524f7ef18a124b50606bd2af900d6e5e63c;p=p5sagit%2FDevel-Declare-Keyword.git updated readme --- diff --git a/README b/README index 36c79ec..5f29816 100644 --- a/README +++ b/README @@ -1,8 +1,11 @@ ABOUT This module aims to provide an easy interface to Devel::Declare. +EXAMPLES +SQL.pm - execute select statements in perl +Methods.pm - + PLAN -* STOP BLOCKLESS BEING EXECUTED AT COMPILE TIME * find usescases from: http://cpants.perl.org/dist/used_by/Devel-Declare * and go through perl's -existing- keywords print $fh "sddfsd". $f, $c etc * look at ... metalua ... and common lisp reader macros. @@ -14,7 +17,6 @@ PLAN * write default action to return whatever the parse routine matched * add pre and post block hooks with shadow { setup_shit() ;exec_block(); do_shit; return $ret} -* add blockless support * alter sig syntax to: keyword method (Maybe[Ident] $ident, Maybe[Proto] $proto, Block $block) { @@ -50,5 +52,4 @@ action proto ($match) { return $code; } -IRC diff --git a/examples/Methods.pm b/examples/Methods.pm index badcc10..19bb808 100644 --- a/examples/Methods.pm +++ b/examples/Methods.pm @@ -6,7 +6,7 @@ use Data::Dumper; keyword method (ident?, proto?, block) { $block->name($ident); $block->inject_begin($proto); - $block->inject_after("warn 'HELLO!';"); + $block->inject_after("warn 'post block inject ok';"); $block->terminate; }