From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Kickstarter for beginning work on a new open-source Compiler Date: Thu, 20 Mar 2014 11:27:44 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <5151491a-14c3-4138-bcb5-f29108aeefb9@googlegroups.com> <801079196416966973.679877laguest-archeia.com@nntp.aioe.org> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1395329270 22518 192.74.137.71 (20 Mar 2014 15:27:50 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 20 Mar 2014 15:27:50 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:mEnIGcbY9wRkdtYGBrN7wYgdjhA= X-Original-Bytes: 2690 Xref: number.nntp.dca.giganews.com comp.lang.ada:185225 Date: 2014-03-20T11:27:44-04:00 List-Id: Simon Wright writes: > Luke A. Guest writes: >> ASIS doesn't have Ada 2012 support, yet. Unless there are unofficial >> extensions, do you have links? The latest GNAT Pro ASIS fully supports Ada 2012. I don't know if that has made it into the GPL version yet. It will likely be updated to support Ada 2022 (or whatever it will be) when that comes along. > translates (using ASIS GPL 2012 and my ASIS2XML) to I didn't know about your ASIS2XML project until now. Do you know about gnat2xml? It is a similar tool produced by AdaCore. (I wrote it.) It is based on ASIS, and supports Ada 2012. Looking at: http://gnat-asis.sourceforge.net/pmwiki.php/Main/ASIS2XML I see some differences: gnat2xml has cross-links. E.g. each name points to the declaration it denotes, and each expression points to its type. There is an XML schema, automatically generated by an ASIS-based tool called gnat2xsd. Each XML element has a "source location", which tells you the starting and ending line and column numbers for the corresponding source text. The root of the tree has various information, including the name of the source file. There is also a mode in which gnat2xml generates XML interspersed with Ada source text, including comments. I think XML is horrible. But it has the advantage of being standard, and everybody uses it, and there are all sorts of useful XML-based tools out there. - Bob