This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Advanced diff with gcc...
- From: Ricardo Anguiano <anguiano at codesourcery dot com>
- To: Fabrizio Morbini <fabrizio dot morbini at libero dot it>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: 31 Jan 2003 15:51:00 -0800
- Subject: Re: Advanced diff with gcc...
- References: <Pine.LNX.4.44.0301311758530.3074-100000@localhost.localdomain>
Fabrizio Morbini <fabrizio.morbini@libero.it> writes:
> Hi, I write you for post an ideaa: what do you think about adding an
> option (for example --diff) to the gcc compiler that can do an
> advanced diff (and very specializzed to the language of the files to
> compare).
>
> For example a command like this "gcc --diff file1.c file2.c" run the
> gcc parser on the two files and use the tree computed by the parser
> to print a very intelligent diff to the .
>
> Thank you very much for any answer and Best Regards.
A more general purpose tool would include modifying gcc to emit the
parse tree in some standard format, say XML with a well defined
schema.
The parse trees of two files could then be compared with another tool
which parsed and compared the XML parse tree output.
--
Ricardo Anguiano
http://www.codesourcery.com