comp.lang.ada
 help / color / mirror / Atom feed
From: jdveale@world.std.com (James D. Veale)
Subject: Re: Ada Code Formatting
Date: 1996/08/13
Date: 1996-08-13T00:00:00+00:00	[thread overview]
Message-ID: <Dw3A46.EHL@world.std.com> (raw)
In-Reply-To: Dw1y15.L2u@thomsoft.com


kst@thomsoft.com (Keith Thompson) writes:
>A simpler, and nearly as useful, utility would translate its Ada input
>into individual tokens and print them one per line.  So, for example,
>this input:

>    with Text_IO;
>    procedure Hello is -- a comment
>    begin
>	Text_IO.Put_Line("Hello");
>    end Hello;

>would yield this output:

>    with
>    text_io
>    ;
>    procedure
>    hello
>    is
>    begin
>    text_io
>    .
>    put_line
>    (
>    "Hello"
>    )
>    ;
>    end
>    hello
>    ;

>You could then run two versions of an Ada source through this relatively
>simple filter and compare the outputs.  If they compare equal, there is
>no semantically significant difference between the original sources.
>If they don't, finding where in the original sources the differences
>occur is left as an exercise.

That's essentially what Complite does,  and what I mean by a word-by-word
comparison where words are separated by common programming language 
delimiters as well as blanks.  The results of the comparison are then
re-integrated into their original line-oriented form with changed words 
highlighted,  correlated scrolling between the two files etc. 

    Jim Veale





  reply	other threads:[~1996-08-13  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-09  0:00 Ada Code Formatting campbell james b0159
1996-08-10  0:00 ` James D. Veale
1996-08-10  0:00 ` John McCabe
1996-08-10  0:00   ` David Weller
1996-08-14  0:00   ` Laurent Gasser
1996-08-10  0:00 ` Fergus Henderson
1996-08-10  0:00   ` Robert Dewar
1996-08-13  0:00     ` Keith Thompson
1996-08-13  0:00       ` James D. Veale [this message]
1996-08-10  0:00 ` Robert Dewar
1996-08-12  0:00 ` Ted Dennison
1996-08-14  0:00 ` Paul Hussein
replies disabled

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