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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8d89c9a2a78ae143 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-02 06:34:36 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: Ada source comparison Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Mon, 02 Jul 2001 09:34:27 EDT Organization: http://www.newsranger.com Date: Mon, 02 Jul 2001 13:34:27 GMT Xref: archiver1.google.com comp.lang.ada:9329 Date: 2001-07-02T13:34:27+00:00 List-Id: In article , tmoran@acm.org says... > >>Hi again. Is there a tool allowing to check if two texts represent >>the same Ada source, eventually with a different formatting ? > a) run a pretty printer on both, then compare the pretty-printed >source files. > b) compile both and compare the resulting object files (may differ >slightly in a timestamp but shouldn't differ much more than that). c) run the OpenToken "Ada tokenizer test" on both, and compare the output. It'd be pretty easy to modify the test to do the comparison automaticly. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com