comp.lang.ada
 help / color / mirror / Atom feed
From: "Ira D. Baxter" <idbaxter@semdesigns.com>
Subject: Re: Q: Generating Documenation from Ada Sources?
Date: Sun, 12 May 2002 15:43:38 -0500
Date: 2002-05-12T15:43:38-05:00	[thread overview]
Message-ID: <3cded1a9$1@giga.realtime.net> (raw)
In-Reply-To: SWxD8.1171$fy5.65482852@newssvr21.news.prodigy.com

The DMS Software Reengineering Toolkit
can parse Ada, build ASTs, and then
use custom code to extract what you want.
(It is kind of like ASIS, for a whole
set of langauges; not as complete
as ASIS wrt Ada, but more capable
than ASIS in the DMS can
actually change the source tree
and the prettyprint the changed
result.  The latter capability
isn't needed for documenation
extraction).

Part of the customization process can control
how many syntax faults are acceptable before
it gives up (at the price of getting a
syntax tree with error insertions that
might not make sense, but error
recovery is a tough topic).

For the original poster, who wants to
extract certain information and then
reformat the way he likes,
I'd suggest extracting the information
he needs and dumping as XML text.
One can use XSLT to reshape the
result pretty much as you like.
This decouples extraction from
formatting.

See http://www.semdesigns.com/Products/DMS/DMSToolkit.html.

--
Ira D. Baxter, Ph.D. CTO Semantic Designs, Inc.
http://www.semdesigns.com

<tmoran@acm.org> wrote in message
news:SWxD8.1171$fy5.65482852@newssvr21.news.prodigy.com...
> The tool for Claw only requires the public part of specifications to be
> parsable with an ayacc Ada grammar.  The only semantic requirement I
> recall is that things are assumed to be defined before use.
>
> It would be nice if there was a cut down, highly forgiving, version of
> ASIS to handle incomplete programs or situations where a compiler bug
> prevents compilation and thus prevents use of the current ASIS.





  reply	other threads:[~2002-05-12 20:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-11 14:59 Q: Generating Documenation from Ada Sources? Michael Erdmann
2002-05-11 18:29 ` Robert Dewar
2002-05-11 19:07   ` Michael Erdmann
2002-05-12  2:05     ` Randy Brukardt
2002-05-12  7:35       ` Michael Erdmann
2002-05-12  8:12         ` Dr. Michael Paus
2002-05-12 15:23           ` Michael Erdmann
2002-05-12 17:49             ` tmoran
2002-05-12 20:43               ` Ira D. Baxter [this message]
2002-05-13 14:11             ` Stephen Leake
2002-05-13 20:21               ` Michael Erdmann
2002-05-13 22:25                 ` tmoran
2002-05-14 18:01                   ` Michael Erdmann
2002-05-13  5:36 ` Stefan Revets
2002-05-13 13:03   ` Georg Bauhaus
2002-05-14  5:20     ` Stefan Revets
replies disabled

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