Thread overview
line counting tool that detects D comments etc?
Mar 04, 2010
Trass3r
Mar 04, 2010
Ellery Newcomer
Mar 04, 2010
Trass3r
Mar 05, 2010
Kagamin
Apr 11, 2010
Stewart Gordon
March 04, 2010
Is there any line counting tool that also detects nested D comments etc.?
Preferably for Windoze or platform-independent.
March 04, 2010
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?
March 04, 2010
> 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...
March 05, 2010
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.
April 11, 2010
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.