Natural Docs

Natural Docs
Natural Docs
Natural-Docs-Logo.png
Original author(s) Greg Valure
Stable release 1.5 / July 22, 2010
Operating system Cross-platform
Type Documentation generator
License Affero General Public License
Website NaturalDocs.org

Natural Docs is a multi-language documentation generator. It is written in Perl and is available as free software under the terms of the Affero General Public License. It attempts to keep the comments written in source code just as readable as the generated documentation. It is written and maintained by Greg Valure.

Contents

Background

Theoretically, Natural Docs can generate documentation from any language that can support comments, or from plain text files. When executed, it can automatically document functions, variables, classes, and inheritance from ActionScript, C#, and Perl regardless of existing documentation in the source code. In all other languages, these need to be explicitly documented for them to be generated. It can generate documentation in HTML, either with frames or without.

Unlike Javadoc, it is not considered an industry standard for documenting in any language, although it can incorporate Javadoc documentation for languages with "full support."[1] It is used by some hobbyists and companies, such as CNET Networks, Inc. and Iron Realms Entertainment.[2][3] It has gained popularity amongst ActionScript developers because no other free documentation generator exists that fully supports ActionScript and because it generates higher-quality output than similar generators that partially support the language, such as ROBODoc.

Example

This is an example of the documentation style:

/*
 * Function: Multiply
 * 
 * Multiplies two integers.
 *
 * Parameters:
 *    x - The first integer.
 *    y - The second integer.
 *
 * Returns:
 *    The two integers multiplied together.
 *
 * See Also:
 *    <Divide>
 */

int Multiply (int x, int y)
   {  return x * y;  };

For comparison, this is how the same thing would be documented with Javadoc:

/**         
 * Multiplies two integers.      
 *       
 * @param x The first integer.   
 * @param y The second integer.          
 * @return The two integers multiplied together.         
 * @see Divide   
 */      

int Multiply (int x, int y)      
   { return x * y; };

See also

Notes and references

Further reading


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Natural Docs — Entwickler Greg Valure Aktuelle Version 1.51 (21. Dezember 2010) Betriebssystem Plattformunabhängig (benötigt Perl) Kategorie Software Dokumentationswerkzeug …   Deutsch Wikipedia

  • Natural Docs — Autor Greg Valure NaturalDocs.org Información general Última versión estable 1.4 8 de mayo de 2008 …   Wikipedia Español

  • Natural Gas Act of 1938 — Related Laws Federal Power Act of 1935 Relevant Court Cases FPC V. NATURAL GAS PIPELINE CO., 315 U. S. 575 (1942) The Natural Gas Act of 1938 was the first occurrence of the United States federal government regulating the natural gas industry. It …   Wikipedia

  • Natural Bridge (Virginia) — Natural Bridge U.S. National Register of Historic Places U.S. National Historic Landmark …   Wikipedia

  • Natural Dam, Arkansas —   Unincorporated community   …   Wikipedia

  • Carnegie Museum of Natural History — Das Museum Das Carnegie Museum of Natural History ist ein Museum für Naturgeschichte in Pittsburgh im US Bundesstaat Pennsylvania. Inhaltsverzeichnis …   Deutsch Wikipedia

  • University of Kansas Natural History Museum — Dyche Hall, University of Kansas U.S. National Register of Historic Places …   Wikipedia

  • List of natural disasters by death toll — A natural disaster is defined as a hazard which occurs naturally, that is a disaster that is not brought about by acts of human beings. A natural disaster might be caused by earthquakes, flooding, volcanic eruption, landslide, etc. In order to be …   Wikipedia

  • Renewable natural gas — Renewable natural gas, also known as sustainable natural gas, is a biogas which has been upgraded to a quality similar to natural gas. A biogas is a gas obtained from biomass. By upgrading the quality to that of natural gas, it becomes possible… …   Wikipedia

  • Field Museum of Natural History — FMNH redirects here. For the Florida Museum of Natural History, see FLMNH. Field Museum of Natural History U.S. National Register of Historic Places …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”