comp.lang.ada
 help / color / mirror / Atom feed
* Re: Ada-smart diff tool
@ 1997-03-20  0:00 W. Wesley Groleau (Wes)
  1997-03-22  0:00 ` James D. Veale
  1997-03-25  0:00 ` Tom Halliley
  0 siblings, 2 replies; 9+ messages in thread
From: W. Wesley Groleau (Wes) @ 1997-03-20  0:00 UTC (permalink / raw)



:> did you look at the unix diff command? it does some of things
:> you wanted.

I appreciate the suggestion, but diff and sdiff will not get the job done.

I'm looking for a tool that will ONLY show genuine differences in the Ada

diff -b   will say that  An_Array(I)  and  An_Array ( I )  are different
which is not true for my purposes.

diff -w will say that   A := new block   and   A := newblock   are the same
which is not true for my purposes.

diff -i will say that  Result := "AAA"  is the same as  Result := "aaa"
which is not true for my purposes.

And finally, I know of _no_ trick whereby  diff will recognize that

if This_Is_True then    is the same as       if This_Is_True
                                             then

I have to compare thousands of lines for "REAL" changes and am trying
to save the time of looking at changes that need not be made just to
determine that they need not be made!

But I can't just blindly install the "new" code, because I actually
need to ensure that such a "REAL" change is correct.

I can do tricks with awk/sed/perl and pretty printers to reformat the
Ada before diff-ing it, but I was checking to see if I could find a tool
with the features already coded....

---------------------------------------------------------------------------
W. Wesley Groleau (Wes)                                Office: 219-429-4923
Hughes Defense Communications (MS 10-41)                 Home: 219-471-7206
Fort Wayne,  IN   46808                  (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 9+ messages in thread
* Ada-smart diff tool
@ 1997-03-20  0:00 W. Wesley Groleau (Wes)
  1997-03-22  0:00 ` Robert Dewar
  0 siblings, 1 reply; 9+ messages in thread
From: W. Wesley Groleau (Wes) @ 1997-03-20  0:00 UTC (permalink / raw)



Anyone aware of a tool to compare Ada files for syntax differences?
In other words, will not show differences in comments, whitespace,
or character case, but WILL show a change in parameter mode, the
addition of a default for a discriminant, the loss of an identifier
after "end" etc.

Preferably not affected by line breaks either.

Finally (if wishes were horses) has to be "free" software...

Thanks

---------------------------------------------------------------------------
W. Wesley Groleau (Wes)                                Office: 219-429-4923
Hughes Defense Communications (MS 10-41)                 Home: 219-471-7206
Fort Wayne,  IN   46808                  (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Ada-smart diff tool
@ 1997-03-31  0:00 W. Wesley Groleau (Wes)
  1997-03-31  0:00 ` Robert Dewar
  0 siblings, 1 reply; 9+ messages in thread
From: W. Wesley Groleau (Wes) @ 1997-03-31  0:00 UTC (permalink / raw)



> ASIS (Ada Semantic Interface Specification) is an Ada API
> (soon to be an ISO standard) provided by some Ada vendors which
> allows a tool developer to fetch syntactic and semantic information
> about a compiled Ada program.  Hence, one could write an ASIS-based
> tool that displays a _semantic_ difference between two units, as
> opposed to a simple lexical/syntactic difference via diff/sdiff/etc.

ASIS is a Good Thing.  But can it do such a comparison between two
versions of the _same_ unit?

FWIW, diff/sdiff are _not_ adequate, since they can be fooled by
one space vs. no space and by line breaks (at the syntax level).

---------------------------------------------------------------------------
W. Wesley Groleau (Wes)                                Office: 219-429-4923
Hughes Defense Communications (MS 10-41)                 Home: 219-471-7206
Fort Wayne,  IN   46808                  (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1997-03-31  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-20  0:00 Ada-smart diff tool W. Wesley Groleau (Wes)
1997-03-22  0:00 ` James D. Veale
1997-03-24  0:00   ` Jeff
1997-03-25  0:00 ` Tom Halliley
  -- strict thread matches above, loose matches on Subject: below --
1997-03-20  0:00 W. Wesley Groleau (Wes)
1997-03-22  0:00 ` Robert Dewar
1997-03-25  0:00   ` Nick Roberts
1997-03-31  0:00 W. Wesley Groleau (Wes)
1997-03-31  0:00 ` Robert Dewar

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