Re: [PHP3] php class documenting program
| From: | (Richard Lynch) | Date: | Fri, 16 Jun 2000 01:11:34 +0000 |
| Subject: | Re: [PHP3] php class documenting program | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2023@lists.php.net to get a copy of this message | ||
In article
<002501bfd5ef$2d7f9820$4bf21e26@mail.earthlink.net.mail.earthlink.net>,
cubadc@earthlink.net ("Christian Calloway") wrote:
> Hey everyone,
>
> I just wrote a documenting program for php classes, in Java, and it works
> exactly like javadoc (if your not familiar with javadoc, its a documenting
> tool for java classes). Heres the problem though, it records class and
> method comments, but only in the javadoc way. For example,
>
> /**
> ** This class will solve all problems
> **/
> class HeyYou
> {
> /**
> ** A Perfect Constructor
> **/
> function HeyYou()
> {
>
> }
>
> }
>
> Now I'de like to release the program for public use, but after looking at
> the source from a bunch of different authors, it seems as if everyone writes
> their comments differently. Im not a fan of making authors follow strict
> guidelines, but I don't see anyway of making a universal comment locator.
> Any ideas, suggestions..?
The PHP parser is OpenSource, and they almost for sure have a comment
stripper as one of the first things in there... It should not be too hard
to dig it out and find a way to modify it...
Or, find other programs that do this kind of stuff for C and Perl:
They're comments are the same syntax.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)