From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bc91f3cb8ba9eae3,start X-Google-Attributes: gid103376,public From: Rosen.Adalog@wanadoo.fr (J-P. Rosen) Subject: Re: Ada smart diff Date: 1997/03/26 Message-ID: <5hbhgt$hgj@hetre.wanadoo.fr>#1/1 X-Deja-AN: 228512822 Organization: Adalog Reply-To: Rosen.Adalog@wanadoo.fr Newsgroups: comp.lang.ada Date: 1997-03-26T00:00:00+00:00 List-Id: 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 [ []] 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-------------------------------------+