TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

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
Subject:
From:
"Carlisle, Martin" <[log in to unmask]>
Reply To:
Carlisle, Martin
Date:
Wed, 9 Jun 1999 15:20:29 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
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.

ATOM RSS1 RSS2