comp.lang.ada
 help / color / mirror / Atom feed
* ANNOUNCE: Avatox 1.0 is now available
@ 2006-08-17  0:58 Marc A. Criley
  2006-08-17  2:10 ` Jeffrey Creem
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Marc A. Criley @ 2006-08-17  0:58 UTC (permalink / raw)


Avatox 1.0 (Ada, Via Asis, To Xml) is an application that traverses an Ada 
compilation unit and outputs the ASIS representation of that unit 
structured as an XML document.

It is now available in source code form at www.mckae.com/avatox.html.

Avatox' XML representation provides some content, such as identifier names 
and operators, as attributes, rather than outputting everything as an 
element.  It also outputs the row/column span of every element, and embeds 
comment lines within non-ASIS "A_COMMENT" elements.

Here's a brief excerpt generated by:

   avatox avatox.adb -Imckae -I$GNAT/include/asis

(assuming GNAT is the GNAT GPL 2006 installation directory)


<A_DECLARATION startLine="47" endLine="299" startCol="1" endCol="11">
   <A_PROCEDURE_BODY_DECLARATION startLine="47" endLine="299"
                                 startCol="1" endCol="11">
   </A_PROCEDURE_BODY_DECLARATION>
   <A_DEFINING_NAME startLine="47" endLine="47" startCol="11" endCol="16">
     <A_DEFINING_IDENTIFIER name="Avatox" startLine="47" endLine="47"
                                          startCol="11" endCol="16"/>
   </A_DEFINING_NAME>

The canonical style of XML element naming can also be selected for ASIS 
element naming, which alters the previous excerpt to look like this:

<aDeclaration startLine="47" endLine="299" startCol="1" endCol="11">
   <aProcedureBodyDeclaration startLine="47" endLine="299"
                              startCol="1" endCol="11">
   </aProcedureBodyDeclaration>
   <aDefiningName startLine="47" endLine="47" startCol="11" endCol="16">
     <aDefiningIdentifier name="Avatox" startLine="47" endLine="47"
                                        startCol="11" endCol="16"/>
     </aDefiningName>


So what can you do with Avatox?

Well, you can now leverage XML technologies, like XPath and XQuery, for 
source code metrics and analysis.

There's enough information in the generated XML representation that one 
should be able to identically reconstitute the original Ada source code. 
And should such a utility come into existence <grin>, one could even do 
things like XSLT based transformations on the XML and generate Ada source 
code from the resulting file.

Avatox 1.0 was developed using GNAT GPL 2006, and is an evolution of the 
Display_Source program distributed with that compiler's ASIS distribution. 
  Avatox is therefore licensed under the GPL, while the included McKae 
software utilites is licensed as GMGPL.

Check it out at www.mckae.com/avatox.html. (And yes, I know the title 
graphic is missing, it's on order :-)

-- Marc A. Criley
-- Mckae Technologies
-- www.mckae.com
-- DTraq - Avatox - XIA - XML EZ Out




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2006-09-11  8:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-17  0:58 ANNOUNCE: Avatox 1.0 is now available Marc A. Criley
2006-08-17  2:10 ` Jeffrey Creem
2006-08-18  8:03 ` Pascal Obry
2006-08-18  8:04 ` Pascal Obry
2006-08-18  8:05 ` Pascal Obry
2006-08-21 20:59 ` Simon Wright
2006-08-24  0:41   ` Marc A. Criley
2006-08-24  6:03     ` Simon Wright
2006-08-25  1:15       ` Marc A. Criley
2006-09-06 23:29       ` Randy Brukardt
2006-09-07 20:46         ` Simon Wright
2006-09-08  2:40           ` Randy Brukardt
2006-09-08 13:40             ` Georg Bauhaus
2006-09-09  8:28               ` Manuel Collado
2006-09-09 12:21                 ` Simon Wright
2006-09-11  7:58                   ` Manuel Collado
2006-09-09 18:56                 ` Marc A. Criley
2006-09-11  8:10                   ` Manuel Collado

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