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 <chadful...@gmail.com> 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php