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
Date: 20 Feb 93 15:23:00 GMT [thread overview]
Message-ID: <20FEB199309232359@cl2.cl.uh.edu> (raw)
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 --
-----------------------------------
next reply other threads:[~1993-02-20 15:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-02-20 15:23 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!cl2.cl.uh.edu! [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-02-22 15:11 program to count LOC David Emery
1993-02-20 1:15 Dave Bashford
1993-02-19 19:09 cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!cs.utexas.edu
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox