Iterate
Posted: Sat Oct 04, 2008 1:09 pm
Ok, so I have taken a break from working on my OS (http://forum.osdev.org/viewtopic.php?f= ... OS#p135177), and I started working on one of my old projects. It is called Iterate, and it aims to be robust code metric tool. It started when I wanted a simple program to calculate the lines of code in one of my projects, not counting whitespace or comments. As I couldn't find simple enough one, I hacked one up in java (link below).
So I have started rewriting it in C++, and while it will still have the same capabilities as the original java version, it will have many more additional features. The biggest difference is that the new version will have a filetype, .itp, which will store all the information about a project that someone would want metrics on often. It not only stores information on all the files in the project, but meta information as well, so it can keep track of metrics generated for the project over time. This will allow iterate to output graphs and other things. Another advantage of the filetype is that you don't have to type in all the files you want to analyze , just the .itp file.
Here is my little hack:
http://www.eostorm.com/downloads/iterate/Iterate.jar
Usage:
java -jar Iterate.jar file_1 file_2 ... file_n
It automatically detects what kind of comments the files have and if it can't figure it out, defaults to c/c++ style comments.
supported comments:
c/c++ (.h/.c/.cpp/.hpp)
java (.java)
nasm (.asm)
pascal (.pas)
So I have started rewriting it in C++, and while it will still have the same capabilities as the original java version, it will have many more additional features. The biggest difference is that the new version will have a filetype, .itp, which will store all the information about a project that someone would want metrics on often. It not only stores information on all the files in the project, but meta information as well, so it can keep track of metrics generated for the project over time. This will allow iterate to output graphs and other things. Another advantage of the filetype is that you don't have to type in all the files you want to analyze , just the .itp file.
Here is my little hack:
http://www.eostorm.com/downloads/iterate/Iterate.jar
Usage:
java -jar Iterate.jar file_1 file_2 ... file_n
It automatically detects what kind of comments the files have and if it can't figure it out, defaults to c/c++ style comments.
supported comments:
c/c++ (.h/.c/.cpp/.hpp)
java (.java)
nasm (.asm)
pascal (.pas)