This might be a relatively straight-forward modification of the AdaGIDE
reformatter (available as a standalone from
ftp://ftp.usafa.af.mil/pub/dfcs/carlisle/reformat)
There is a function Check_Continuation_Line which has a rule set for
determining whether it thinks you are at the end of a statement. You'd have
to change it so it munched all line feeds and added an LF when
continuation_line was false.
--Martin
-----Original Message-----
From: jim hopper [mailto:[log in to unmask]]
Sent: Tuesday, June 08, 1999 6:04 PM
To: [log in to unmask]
Subject: Re: Need of a special SLOC tool
counted as many lines changed. i have come to the conclusion the
only way to do this is to run a pretty printer first on both versions
that compresses all ada statements into single line statements, then
run the script. kind of painful since i have to write the code to
compress the source code ;-) oh well it was a nice idea for a while.
if anyone knows of a pretty printer that will do this correctly for
all ada constructs, please let me know.