comp.lang.ada
 help / color / mirror / Atom feed
* Re: Ada smart diff
@ 1997-03-26  0:00 J-P. Rosen
  0 siblings, 0 replies; only message in thread
From: J-P. Rosen @ 1997-03-26  0:00 UTC (permalink / 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-------------------------------------+





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-03-26  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-26  0:00 Ada smart diff J-P. Rosen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox