public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Counting lines of source code
@ 2002-08-13  6:54 Keen Wayne A Contr AFRL/MNGG
  0 siblings, 0 replies; 4+ messages in thread
From: Keen Wayne A Contr AFRL/MNGG @ 2002-08-13  6:54 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

If you happen to be on a Unix system, and happen to be counting SLOC in say,
C or Ada or Pascal, you can do something like
this:

grep -c ";" test.cpp

Now, this will also count commented out lines of code, but it is free and
really easy.

:-)

Wayne

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Counting lines of source code
  2002-08-12 20:04 Wei Qin
  2002-08-13  5:55 ` John Love-Jensen
@ 2002-08-13  9:28 ` John Levon
  1 sibling, 0 replies; 4+ messages in thread
From: John Levon @ 2002-08-13  9:28 UTC (permalink / raw)
  To: Wei Qin; +Cc: gcc-help

On Mon, Aug 12, 2002 at 11:04:18PM -0400, Wei Qin wrote:

> Can someone recommend a free tool counting source code lines (excluding
> comments and blank lines)?

sloccount

regards
john

-- 
"It is unbecoming for young men to utter maxims."
	- Aristotle

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Counting lines of source code
  2002-08-12 20:04 Wei Qin
@ 2002-08-13  5:55 ` John Love-Jensen
  2002-08-13  9:28 ` John Levon
  1 sibling, 0 replies; 4+ messages in thread
From: John Love-Jensen @ 2002-08-13  5:55 UTC (permalink / raw)
  To: Wei Qin, gcc-help

perl is just the ticket!


On 8/12/02 10:04 PM, "Wei Qin" <wqin@EE.Princeton.EDU> wrote:

> Can someone recommend a free tool counting source code lines (excluding
> comments and blank lines)?
> 
> thanks in advance,
> 
> Wei


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Counting lines of source code
@ 2002-08-12 20:04 Wei Qin
  2002-08-13  5:55 ` John Love-Jensen
  2002-08-13  9:28 ` John Levon
  0 siblings, 2 replies; 4+ messages in thread
From: Wei Qin @ 2002-08-12 20:04 UTC (permalink / raw)
  To: gcc-help



Can someone recommend a free tool counting source code lines (excluding
comments and blank lines)?

thanks in advance,

Wei


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-13 16:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-13  6:54 Counting lines of source code Keen Wayne A Contr AFRL/MNGG
  -- strict thread matches above, loose matches on Subject: below --
2002-08-12 20:04 Wei Qin
2002-08-13  5:55 ` John Love-Jensen
2002-08-13  9:28 ` John Levon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).