From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 20 Feb 93 15:23:00 GMT From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!cl2.cl.uh.edu! csci180b@ucbvax.Berkeley.EDU (Bill Fay) Subject: Re: program to count LOC Message-ID: <20FEB199309232359@cl2.cl.uh.edu> List-Id: In article <1993Feb20.011537.16182@scf.loral.com>, bashford@srs.loral.com (Dave Bashford) writes... >In article <1993Feb19.190953.12876@relay.nswc.navy.mil> doliver@apssgi.nswc.na vy.mil (Donna Oliver) writes: >>I would like to know where I can get a program to Ada lines of code. >> >if you are running on Unix, the following command will count uncommented >semi-colons: > cat file | sed 's/--.*$//' | tr -cd ';' | wc -c > >I'd be interested if anyone has a better definition of LSS (new >spelling of SLOC). Be warned: A_String_Declaration : String (1 .. 9) := "1 ; 2 ; 3"; will count as 3 non-literal semicolons using the above unix command. Bill Fay -------------------------- University of Houston/Clear Lake -- -----------------------------------