www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - line counting tool that detects D comments etc?

reply Trass3r <un known.com> writes:
Is there any line counting tool that also detects nested D comments etc.?
Preferably for Windoze or platform-independent.
Mar 03 2010
parent reply Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
On 03/03/2010 06:15 PM, Trass3r wrote:
 Is there any line counting tool that also detects nested D comments etc.?
 Preferably for Windoze or platform-independent.
Could you clarify what kind of a utility you're looking for? e.g. what's the significance of being able to detect nested comments?
Mar 03 2010
parent reply Trass3r <un known.com> writes:
 e.g. what's the significance of being able to detect nested comments?
so they aren't counted as lines of code. Just a simple tool that counts actual LoC, empty lines, comments, maybe ddoc comments...
Mar 03 2010
parent reply Kagamin <spam here.lot> writes:
Trass3r Wrote:

 e.g. what's the significance of being able to detect nested comments?
so they aren't counted as lines of code. Just a simple tool that counts actual LoC, empty lines, comments, maybe ddoc comments...
don't know ready solution, but Scintilla's D lexer may be of some use.
Mar 04 2010
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Kagamin wrote:
 Trass3r Wrote:
<snip>
 Just a simple tool that counts actual LoC, empty lines, comments, maybe  
 ddoc comments...
don't know ready solution, but Scintilla's D lexer may be of some use.
Surely it's as straightforward to write this simple tool yourself as to dig into something like a text editor's lexer? Stewart.
Apr 10 2010