From: Rosen.Adalog@wanadoo.fr (J-P. Rosen)
Subject: Re: Ada smart diff
Date: 1997/03/26
Date: 1997-03-26T00:00:00+00:00 [thread overview]
Message-ID: <5hbhgt$hgj@hetre.wanadoo.fr> (raw)
I have written a small program to "normalize" an Ada source. I hope
this will help the "smart diff" problem.
It is provided as "advertiseware", i.e. you can use it freely provided
you do not delete the small advertisement for Adalog in the header !
I have no FTP site (yet), but I'll gladly mail the source to anyone
who wants it. Just mail to rosen.adalog@wanadoo.fr
Here is what it is about:
Procedure Normalize
(C) Copyright 1997 ADALOG
Author: J-P. Rosen
Normalizes an Ada source file to allow "semantic" comparison of files
All unnecessary separators are removed
Tabs are treated as a single space
Comments are removed
All identifiers are converted to upper case
String and character litterals are left untouched
Empty lines (after processing) are removed
Usage:
normalize [<file-in> [<file-out>]]
with one argument, outputs to Standard_Output
with no argument, inputs from Standard_Input and outputs to
Standard_Output
This should allow for easy pipe-lining !
Exit_Status:
0 : OK
1 : Error (file not found or syntax error)
Known bugs:
"mod" (A,B) is not recognized as a special construct, and thus
casing of "mod" will be preserved
+------------------------------------o-------------------------------------+
| J-P. Rosen | Rosen.Adalog@wanadoo.fr |
| ADALOG - 27 avenue de Verdun | Tel: +33 1 46 45 51 12 |
| 92170 Vanves - FRANCE | Fax: +33 1 46 45 52 49 |
+------------------------------------o-------------------------------------+
reply other threads:[~1997-03-26 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox