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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,41100a78496a4c71 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-03 09:15:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp.abs.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail From: "Bobby D. Bryant" Newsgroups: comp.lang.ada Subject: Re: Nethack! (was): AdaGames Date: Wed, 03 Apr 2002 11:09:53 -0600 Organization: dis- Message-ID: References: <98104da8.0203280310.143a1c18@posting.google.com> <4519e058.0203290613.73b55af4@posting.google.com> <6g4gaugv9a85i56kvgcgmu4h2jkjprutec@4ax.com> <4519e058.0204010704.ed2cd06@posting.google.com> <4519e058.0204021030.14127b06@posting.google.com> <4519e058.0204030750.78a30287@posting.google.com> NNTP-Posting-Host: dial-69-16.ots.utexas.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: geraldo.cc.utexas.edu 1017853824 19935 128.83.254.16 (3 Apr 2002 17:10:24 GMT) X-Complaints-To: abuse@utexas.edu NNTP-Posting-Date: Wed, 3 Apr 2002 17:10:24 +0000 (UTC) User-Agent: Pan/0.11.2 (Unix) X-Comment-To: "Ted Dennison" Xref: archiver1.google.com comp.lang.ada:22058 Date: 2002-04-03T11:09:53-06:00 List-Id: On Wed, 03 Apr 2002 09:50:45 -0600, Ted Dennison wrote: > 2) ";$" (semi's at the end of the line, for those who don't speak > sed) doesn't get rid of them all anyway. In my code, it wouldn't be > likely to get rid of *any*, as I always put only one formal parameter > definition on a line. Also, it misses ;s that are followed by comments. Somewhere along the way I picked up a perl script by one Christopher Moore, which reports (pseudo) SLOC, comment lines, blank lines, the total, and the number of subrountines. If you give it a wildcard argument it reports those counts per-sourcefile and totals them at the bottom. A Web search turns it up at Adapower, http://www.adapower.com/reuse/sloc.html, though I use a minorly hacked version that reports in nice on-screen columns rather than as a comma-delimeted list. FWIW, I like to count comment lines as well as lines of code, since they represent a commitment of effort toward the solution of the problem. Bobby Bryant Austin, Texas