Re: Code comments extraction for documentation
By "comments extraction", I mean extracting comments from code (e.g.,The buzzphrase for this is "literate programming". Google search turns
c++) for use in documentation (e.g., of a software developers' kit).
If there is a more standard name for this, please let me know.
up many references. No doubt there are some good ones.
Knuth wrote a book that started the "literate programming" movement:
http://www-cs-faculty.stanford.edu/~knuth/lp.html
Has anyone on the list tackled the problem of comments extraction in a
documentation project?
1) What tool(s) did you use/recommend? Or did you roll your own?
One solution I've seen used C comments before function definitions
with an extra * in the format:
/** function furble
** computes the furble of its arguments
**/
int furble( int x, int y, int z)
A few lines of Awk or PERL will extract the comments here.
Comments using only /* ... */ or // will be ignored; not every
comment belongs in the documentation.
--
Sandy Harris
Quanzhou, Fujian, China
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WebWorks ePublisher Pro for Word features support for every major Help format plus PDF, HTML and more. Flexible, precise, and efficient content delivery. Try it today! http://www.webworks.com/techwr-l
Easily create HTML or Microsoft Word content and convert to any popular Help file format or printed documentation. Learn more at http://www.DocToHelp.com/TechwrlList
---
You are currently subscribed to TECHWR-L as archive -at- infoinfocus -dot- com -dot-
To unsubscribe send a blank email to techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40infoinfocus.com
To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com
Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.
Follow-Ups:
- Re: Code comments extraction for documentation, Sandy Nicholson
References:
Code comments extraction for documentation: From: John Harrington
Previous by Author:
Query on websites
Next by Author:
Re: If you were asked to design a course for undergrad engineering students...
Previous by Thread:
RE: Code comments extraction for documentation
Next by Thread:
Re: Code comments extraction for documentation
Search our Technical Writing Archives & Magazine
Visit TechWhirl's Other Sites
Sponsored Ads