comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: ANN: Ada source code decorator
Date: Thu, 25 May 2006 14:36:12 +0200
Date: 2006-05-25T14:35:55+02:00	[thread overview]
Message-ID: <4475a4aa$0$11072$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <eMadg.1943$No1.1153@attbi_s71>

Jeffrey R. Carter wrote:
> Stephen Leake wrote:
>>
>> I don't see how that is remotely possible. The whole point of ASIS is
>> to access the knowledge the compiler has about the source. Thus the
>> compiler has to provide functions to access that knowledge.

The compiler could provide a representation of its knowledge of the
source that uses XML. For example, internal trees (or graphs), where
the nodes carry information not only about names, etc, but also
about representations. Trees, or groves, are an ideal candidate for
XML based representation because an XML document instance is a tree
or graph, and XML based tools are made for working on these.

In fact, ASIS and XML use almost the same wording, e.g. element
trees.

> The point of ASIS is to provide a standard way to access information 
> about the source that the compiler has saved. The format of this 
> information is not specified. I suspect Wright is hoping an Ada-0X 
> version of ASIS will specify the format, using XML.

If ASIS were to provide a set of XML element definitions,
these could be used to write transformations to and from XMI,
easing the use of Ada with some OOD tools.
Getting a sorted index of all tagged types in a program will then
be very easy with XML tools: just declare the corresponding XPath
choice and employ XSL's sort and key functions. Done.

Which leads me to a question: Is there a set of "ASIS items" that
you use frequently? Items that could be useful when represented
using XML, even when the Ada information contained therein is limited?


-- Georg 



  reply	other threads:[~2006-05-25 12:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-23 10:59 ANN: Ada source code decorator Georg Bauhaus
2006-05-23 21:01 ` Simon Wright
2006-05-25  0:28   ` Stephen Leake
2006-05-25  4:54     ` Jeffrey R. Carter
2006-05-25 12:36       ` Georg Bauhaus [this message]
2006-05-25 13:48       ` Stephen Leake
2006-05-25 16:16         ` Manuel Collado
2006-05-26  5:54           ` Martin Krischik
2006-05-26 11:08             ` Georg Bauhaus
2006-05-26 20:35             ` Simon Wright
2006-05-27  8:59               ` Martin Krischik
2006-05-27 11:25                 ` Georg Bauhaus
2006-05-27 12:13                   ` Martin Krischik
2006-05-27 12:06                 ` Simon Wright
2006-05-30 17:50               ` Martin Dowie
2006-05-25 19:53     ` Simon Wright
2006-05-26 11:24       ` Stephen Leake
2006-05-26 21:01         ` Simon Wright
2006-05-27 11:51           ` Stephen Leake
2006-05-27 17:38             ` Simon Wright
replies disabled

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