From: Robin Edwards Date: Mon, 7 Dec 2009 13:59:11 +0000 (+0000) Subject: updated api plan X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d300d7036ab42ac137354a4c0cff1ca4953fa041;p=p5sagit%2FDevel-Declare-Keyword.git updated api plan --- diff --git a/README b/README index ecafc13..811e7a3 100644 --- a/README +++ b/README @@ -1,15 +1,15 @@ TODO * create rule and actions keyword * write builtin rules -* decide on injection api SYNTAX +# just an idea. keyword method (identifier, prototype?) { - inject($identifer->begin_code); - inject($prototype->begin_code); - inject_end($identifer->end_code); - inject_end($prototype->end_code); + $block->end($prototype); + $block->begin($prototype); + $block->name($identifier); + $block->write; } rule prototype {