Re: ANN: Ada source code decorator



"Jeffrey R. Carter" <spam.not.jrcarter@xxxxxxxxxxxxxxxx> writes:

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 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.

Ok, now I see; that does make sense.

I don't think that will happen as part of the ASIS 05 effort; there
are not many people working on it, and they don't see that as their
mission. They are working on extending the ASIS 95 API to cover the
new Ada 2005 features, and possibly fixing any problems with the
current API.

I believe the original decision to specify an API, rather than a
format, was to allow each compiler vendor to use a format that was
similar to their already-existing internal compiler structures, thus
making it easier for each compiler vendor to support ASIS. I suspect
that argument still holds. But it might be reasonable to add an
optional standard XML format.

If enough people want it to happen, they should get together and
produce a working example of such a standard format, then lobby to get
it approved as a secondary standard.

Note that vendors will only support such a format if they see money in
it. So people who want it must be able to say they will pay a
reasonable fee for it, and that there are still others who will also
pay such a fee. Or they need to fund the entire development themselves.


I have not used XML processors, so I can't comment on whether they are
"less clunky" than using the ASIS API. But I can see that having a
standard XML representation of the Ada source would make it easier for
people who are familiar with XML to build useful tools. And since
there are certainly more people familiar with XML than with ASIS, that
would be a good thing for Ada.

--
-- Stephe
.



Relevant Pages

  • Re: XML Comment Screwed - Possibly a bug in VB??
    ... What you probably wish for is a message that tells you what it really is that you are trying to do and how to do it, but that is impossible as the compiler can not guess what is on your mind. ... An ampersand is certainly allowed in an XML comment, but it has a special meaning. ... I don't have to send along a 42 page documentation of the file format, including what byte order and encoding to use, a description of the file structure, and how every single piece of information is arranged. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ANN: Ada source code decorator
    ... compiler has to provide functions to access that knowledge. ... The point of ASIS is to provide a standard way to access information ... I have not used XML processors, so I can't comment on whether they are ... I would love an ASIS export utility that provides the full ASIS-accesible information about a single compilation unit as a single XML document. ...
    (comp.lang.ada)
  • Re: Structure definitions in XML
    ... XML format for C structures/definitions. ... The standard would allow for an extension ... Since XML is ASCII, there is no need for any binary representation. ... IDEs to interoperate with any compiler ...
    (comp.std.c)
  • Re: ANN: Ada source code decorator
    ... compiler has to provide functions to access that knowledge. ... For example, internal trees, where ... XML based representation because an XML document instance is a tree ... I suspect Wright is hoping an Ada-0X version of ASIS will specify the format, ...
    (comp.lang.ada)
  • Re: XML Comment Screwed - Possibly a bug in VB??
    ... as I said to Stephany I am not experienced in XML and certainly don't feel like I need to know it inside out to make comments in my code. ... What you probably wish for is a message that tells you what it really is that you are trying to do and how to do it, but that is impossible as the compiler can not guess what is on your mind. ... An ampersand is certainly allowed in an XML comment, but it has a special meaning. ... I don't have to send along a 42 page documentation of the file format, including what byte order and encoding to use, a description of the file structure, and how every single piece of information is arranged. ...
    (microsoft.public.dotnet.languages.vb)