Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49738 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75246 invoked from network); 16 Sep 2010 21:38:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2010 21:38:46 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:38222] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/42-15036-56E829C4 for ; Thu, 16 Sep 2010 17:38:46 -0400 Received: by wyf19 with SMTP id 19so1862609wyf.29 for ; Thu, 16 Sep 2010 14:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=QfTjn+M046B1idwnGDBFEoIcMd1wco6rG1nERoC6K0I=; b=SbR9BZou7lRnkEcv6x4ejTJwRyuNBXN5f1brikam82xHfJCJlEMpdPLVObAZLloRMg OsG5GF42v0exL//y7HX0yby9zePkYO1jbqzB4cfkhW+9MSyk3nh5/cbgs++alM4+iFsF UmkGAkOmqyXMOLaZsMTym7bgY/+wBPCm93ACg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TD4Kry567P0d9qeTfL9Lq/GjahOxLYjrI+KaFDZLTMZaHmeg9FqrDKsUb722OIVaxH lJG/7RKSPhi3Rxll2w4DGTBjGXuNSXEH3OSgPrBLH7MDvNyt7eLBVhNsCKVEo2F3Z1AX dDUpes6E10U/ViVs5Nupkf2mNspJ3/a3kq0QM= MIME-Version: 1.0 Received: by 10.227.151.83 with SMTP id b19mr3177591wbw.205.1284673118114; Thu, 16 Sep 2010 14:38:38 -0700 (PDT) Received: by 10.227.131.72 with HTTP; Thu, 16 Sep 2010 14:38:38 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Sep 2010 23:38:38 +0200 Message-ID: To: Chad Fulton Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] docBlock Parser RFC From: pierre.php@gmail.com (Pierre Joye) hi, That's nice a nice idea. The PHPDocumentator guys did something to help the parsing via a pecl's extension (http://pecl.php.net/docblock). Now, to implement the docbloc parsing itself will require a parser usage (lemon or whatever else you want), it will be freaking tricky, not necessary fast and very hard to be interpreted by computers being. By the way, that's why annotations exist and why annotations have new, smaller, easier to parse syntax. Cheers, On Thu, Sep 16, 2010 at 10:56 PM, Chad Fulton wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org