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,34872f3f22b5b140 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-15 09:39:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Suggestion for gnatstub Date: 15 Nov 2002 12:35:17 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3dcb9e51$0$303$bed64819@news.gradwell.net> <3DCBC4C9.AD436CD9@earthlink.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1037382413 9090 128.183.235.92 (15 Nov 2002 17:46:53 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 15 Nov 2002 17:46:53 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:30954 Date: 2002-11-15T17:46:53+00:00 List-Id: Wes Groleau writes: > > I'd also like to see some revisions to gnatstub like this. > > Something that smartly creates stub functions that work when > > possible. I'm wrote > > Suppose you have the spec for a subprogram. > > You could have an ASIS routine that looks at the spec, > and generates a stub that prints out something like > > Executing stub for function ... ( ... ) return ... > with parameters: param1 => ...... > > Stephen Leake's Auto_Text_IO can do 90% of this already. Hmm. Auto_Text_IO was patterned after a previously written ASIS program that did ..... (drum roll) ..... subprogram stub generation. It's called gnatstub. Comes with GNAT (since at least 3.12). Works fine. People are complaining about the details :). I suppose if you want to get really fancy, Auto_Text_IO has some type-info-gathering stuff that gnatstub might need. But starting with gnatstub is certainly the first thing to do, if you want a better gnatstub. Thanks for the plug, though. -- -- Stephe