Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72378 invoked from network); 16 Sep 2010 21:23:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2010 21:23:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=christian.kaps@mohiva.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=christian.kaps@mohiva.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mohiva.com designates 78.46.69.5 as permitted sender) X-PHP-List-Original-Sender: christian.kaps@mohiva.com X-Host-Fingerprint: 78.46.69.5 zucker.schokokeks.org Received: from [78.46.69.5] ([78.46.69.5:50728] helo=zucker.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/E1-15036-3DA829C4 for ; Thu, 16 Sep 2010 17:23:33 -0400 Received: from [192.168.178.2] (p57B53D6A.dip.t-dialin.net [::ffff:87.181.61.106]) (AUTH: PLAIN christian.kaps@mohiva.com, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by zucker.schokokeks.org with esmtp; Thu, 16 Sep 2010 23:23:28 +0200 id 0000000000018011.000000004C928AD0.00007378 Message-ID: <4C928AD2.9090807@mohiva.com> Date: Thu, 16 Sep 2010 23:23:30 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100903 Lightning/1.0b2pre Thunderbird/3.1.2 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] docBlock Parser RFC From: christian.kaps@mohiva.com (Christian Kaps) Am 16.09.2010 22:56, schrieb Chad Fulton: > Hello, > > Based on comments from the annotations thread, I have created a > docBlock parser RFC at http://wiki.php.net/rfc/docblockparser > > This RFC does not deal with annotations per se, but only with the idea > of adding a function to the Reflection extension which would parse > docBlocks according to a set docBlock syntax into a simple associative > array containing three elements: short description, long description, > and an array of tags. > > This is only meant to aid meta-data retrieval for classes and does not > automatically instantiate anything objects. > > The RFC was meant to conform to existing convention on the formatting > of docBlocks - so one major way to improve it would be to note any > inconsistencies with accepted practice. > > Feel free to improve in any other way as well, of course. > > Thanks, > Chad > Hi Chad, the RFC looks for me like a built-in PHPDocumentor parser. This can be useful. The problem for me is that I cannot parse the file level doc block. What is with tags like @Validator('blabla'). I cannot find an example for this scenario. Greetings, Christian