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.
* 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) {
return $code;
}
-IRC
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;
}