From: LeakyStain <leakstan@erols.com>
Subject: Auto_Text_IO ASIS application
Date: Sun, 18 Nov 2001 18:00:48 -0500
Date: 2001-11-18T23:01:15+00:00 [thread overview]
Message-ID: <3BF83DA0.63BE618@erols.com> (raw)
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
reply other threads:[~2001-11-18 23:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox