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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4915e9a5921238e6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-18 15:02:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: LeakyStain Newsgroups: comp.lang.ada Subject: Auto_Text_IO ASIS application Date: Sun, 18 Nov 2001 18:00:48 -0500 Message-ID: <3BF83DA0.63BE618@erols.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: UmFuZG9tSVap4MpmLhRkLOUw565qCBLbSTIEFW2FdUFXeUAW1py6Qz0ZOMP3ixF3 X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 18 Nov 2001 23:01:15 GMT X-Mailer: Mozilla 4.51 [en] (Win95; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:16677 Date: 2001-11-18T23:01:15+00:00 List-Id: I've posted an ASIS application to my web site: http://users.erols.com/leakstan/Stephe/Ada/auto_text_io.html It generates Text_IO routines Put and Get, using named notation, when given an Ada package containing types. This makes it much less tedious to write readable unit tests, and provides persistent storage in human readable format. The tool is released under the GPL, the run-time components under the GMGPL. There's a switch to generate Ada 83 compatible code; no Get then, because Ada 83 doesn't have Text_IO.Look_Ahead. The Get routines are not as robust as an Ada compiler; the components must be in declaration order. That's sufficient for reading the output of the Put routines, less good for hand-written inputs. It would be interesting to try to combine this with OpenToken to make it more powerful. Enjoy! -- Stephe