Re: Re: [ANNOUNCEMENT] phpDocumentor 1.2.0rc1 (beta)
| From: | Greg Beaver | Date: | Sat, 26 Apr 2003 02:53:08 +0000 |
| Subject: | Re: Re: [ANNOUNCEMENT] phpDocumentor 1.2.0rc1 (beta) | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5072@lists.php.net to get a copy of this message | ||
Hi Alan,
I took a quick glance at the parser, and it is impressive-looking. I have no time for a while to actively test it, and see if we can simply plug it into phpDocumentor easily.
I'd love to chat realtime sometime to go over my questions about the parser and your questions about phpdocumentor's structures. Until then, the structures we use are all in the Parser* files (ParserElements.inc, ParserData.inc)
For 2.0, plugging in different doc comment parsers is a primary goal of phpDocumentor, so that will be good.
Greg
Alan Knowles wrote:
To parse other languages you would need a tokenizer and Lexer - assuming you can get hold of the bison/flex code it should be pretty simple to build a parser/tokenizer using phpJay/phpLex (Thats what PHP-sharp already does with c#) - in terms of the code above the only shared bit is really about 15 lines which do the caching. Note however without the caching, parsing and tokenizing files in PHP will probably take about 4-6 seconds on a 2000 line file.(using the p3/1000 as a reference). Regards Alan------------- Any one want to +1 the PHP_Parser into PEAR? - although the output structure is extremely up in the air at present.. - at least the docs should be easy - it's only got two public methods ;)Alan, Do you think this code could be adapted to parse some other languages ? (java, smalltalk...)Bertrand Mansion Mamasam