TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
"Carlisle, Martin" <[log in to unmask]>
Reply To:
Carlisle, Martin
Wed, 9 Jun 1999 15:20:29 +0100
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.