Python version of php_count.c
Brought to you by:
dwheeler
Dear David,
I ported php_count.c 2.26 to php_count.py (see attachment), leaving as much of the code as possible in C-style (so you can compare the two version more easily).
I am interested in porting python_count and java_count as well, but where is java_lines.c?
Or do you still use the CodeCount toolset and the license is not acceptable?
Happy eastern and greetings from Germany,
René
P.S.: I would be interested in an update to you 2 years old SCM comments :)
http://www.dwheeler.com/essays/scm.html
Python port of php_count.c 2.26
Very fun! I like Python, it's an easy-to-read language. However, it's slow. I've decided to not port sloccount to Python, because the slowdown isn't worth it. sloccount, at least, needs to be fast for many use cases.