comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Ada documentation tools.
Date: Mon, 15 Nov 2010 15:56:31 +0100
Date: 2010-11-15T15:56:31+01:00	[thread overview]
Message-ID: <4ce14a1f$0$7667$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <1c9aff07-3b32-4492-bd33-7f826bd47e10@f16g2000prj.googlegroups.com>

On 15.11.10 15:25, AdaMagica wrote:

> The original wish was to have something like JavaDoc for Ada, which
> just extracts the comments and strips the implementation to produce
> something similar to what the Ada spec is per se.
> 
> Colouring, fonts etc. are rather more than just JavaDoc (modern
> language sensitive IDEs have all this). OK, I haven't used Java for
> years, so perhaps JavaDoc today is more than then.

JavaDoc does more than to extract, literally.  JavaDoc is a small
tagging language.  The tags introduce references to items internal
and external to the Java source.  Internal references are checked.

Then, stale comments, referring to parameters that do no longer
exist are not possible. For example, when using the  @param tag
in the method comment.

Python, similarly, has a mechanism for associating comments
and definitions: documentation strings. These comments are
run-time entities, available to any program in the __doc__
attribute of any objects (this includes functions and classes
which are objects, too).

<Example>

Python>>> print str.__doc__
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
Python>>>

</Example>

Python users have established an informal convention about
identifier names in comments. Ada users haven't, have they?

The informal convention is to place identifier names between
`backticks` when the word refers to named variables of that name.

- Python has full introspective capabilities ...

- Algol 60 (!) has the "comment" key word.

- Eiffel has an "indexing" section at the start of each class.

The Ada language---it keeps being associated with software
engineering---must, to support this association, have supporting
tools that address proper comments.  And do it formally,
otherwise documentation is necessarily bricolage.





  reply	other threads:[~2010-11-15 14:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-14 22:26 Ada documentation tools Peter C. Chapin
2010-11-15  8:14 ` AdaMagica
2010-11-15  9:49   ` Maciej Sobczak
2010-11-15 12:29     ` AdaMagica
2010-11-15 13:06       ` Maciej Sobczak
2010-11-15 14:25         ` AdaMagica
2010-11-15 14:56           ` Georg Bauhaus [this message]
2010-11-17 23:06             ` Yannick Duchêne (Hibou57)
2010-11-15  9:52   ` Georg Bauhaus
2010-11-15 11:40   ` Peter C. Chapin
2010-11-15 12:38     ` AdaMagica
2010-11-15 23:33       ` Peter C. Chapin
2010-12-20 13:02         ` Marco
2010-11-16  1:02       ` Marc A. Criley
2010-11-15 12:56     ` Niklas Holsti
2010-11-15 23:19       ` Peter C. Chapin
2010-11-15  9:47 ` Maciej Sobczak
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox