TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type: text/plain; charset="iso-8859-1"
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: "Carlisle, Martin" <[log in to unmask]>
Date: Wed, 9 Jun 1999 15:20:29 +0100
MIME-Version: 1.0
X-To: jim hopper <[log in to unmask]>
Reply-To: "Carlisle, Martin" <[log in to unmask]>
Parts/Attachments: text/plain (25 lines)
This might be a relatively straight-forward modification of the AdaGIDE
reformatter (available as a standalone from

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.


-----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.