comp.lang.ada
 help / color / mirror / Atom feed
* Auto_Text_IO ASIS application
@ 2001-11-18 23:00 LeakyStain
  0 siblings, 0 replies; only message in thread
From: LeakyStain @ 2001-11-18 23:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-18 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-18 23:00 Auto_Text_IO ASIS application LeakyStain

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