On May 16, [EMAIL PROTECTED] said:

>          I'm trying to Implement a comment extractor from C/C++ Source
>files. Before trying to re-invent the wheel., Is there such a tool
>already?! My basic purpose is to generate documentation out of the
>existing comments.
>         If there isn't such a tool, can you give me some skeletal
>overview of how the code looks like., (Being a newbie... I'm poor in
>regexes., and I think (?) , this can be pretty easy with regexps).
>Thanks for your help.

You should have checked the Perl FAQ.  There is a solution in the
documentation:

  perldoc -q comment

  Found in /usr/local/lib/perl5/5.00502/pod/perlfaq6.pod
  How do I use a regular expression to strip C style comments from a file?

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to