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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fe4dafba9e230b38 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news2.telebyte.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: ANN: ASIS2XML 20041024a Date: Mon, 25 Oct 2004 09:27:21 +0200 Organization: AdaCL Message-ID: <3970536.FMdZ6Uo2G3@linux1.krischik.com> References: <2176299.bixtPgzJXI@linux1.krischik.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1098703466 01 22895 Ac5TXPYLJIKj-fd 041025 11:24:26 X-Complaints-To: usenet-abuse@t-online.de X-ID: ThFld2ZlZeWckZhXneMLVPmd6C-fJNQKH7bvQ4gvTdKTBsTKjlQzcN User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5688 Date: 2004-10-25T09:27:21+02:00 List-Id: Simon Wright wrote: > Martin Krischik writes: > >> Simon Wright wrote: >>ignoredSIS2XML converts a unit's ASIS representation into XML, so as to make >> > it easier to develop transformational tools using (for example) XSLT. >> > >> > As supplied, it relies on GNAT; the only ASIS-for-GNAT feature it >> > relies on is that Data_Decomposition.Size has been extended to work >> > for Subtype Indications; and that only so that it can work out how >> > many bytes a record component will occupy when streamed (this part is >> > in progress) >> > >> > Not every ASIS feature is supported yet. >> > >> > There is no XML Schema as yet (however, the output's structure follows >> > that of ASIS as determined from the Ada specs -- I'm not at all sure >> > this is the Right Thing for an XML representation). >> >> Well XMI would be cool. All important UML tool can import XMI. Also >> it is a standart. > > Where did I say XMI?!! A little misunderstanding here: I was merely suggesting XMI as XML Schema since you havn't got one yet. > I can see the attraction of it, not that I'd thought of such a thing, > but it seems to me that a UML model is going to be (ought to be) a > representation of a problem domain at an abstraction level rather > higher than that of an Ada program. True, but UML should also be forward and reverse engeneerable to the actual code. Otherwise it would not be of much use. > If it's at the same level, why not > just write Ada? UML can be used to give to an overvier over the programm. > There are all sorts of things you can say in Ada that have no natural > representation (that I'm aware of, anyway, though I'd be prepared to > be proved wrong) in UML; for example, a generic formal subprogram > parameter. Well UML has generic parameters it does not say much about the type. Which is inline with the higher level view you where mentioning: There is a generic parameter - details are left to the languages. As for XMI: XMI allows user/language defined extentions where those details can be described. They would be ignored when imported from tools which don't know them > I'm pretty sure that XMI would allow communication at the syntactic > level but not at the semantic level. After all, to do anything really > helpful with UML you need a profile to say what the symbols (those in > the standard, and your extensions) actually mean. UML has stereotypes for everything which is beyond the standart. XMI has extentions where code generators and such like can keep there extra information. The real advantage would be the ability to display the model with any program capable of XMI import - wich should render better then an normal XML Browser. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com