Tech Tutorials Database
GeekArticles Programming Delphi
 

Unicode Statistics Tool

 
Author: cc.embarcadero.com
Category: Delphi
Comments (0)

Parser.exe is based on Jacob work, and should support Pascalcode all the way back to the early days. It may have some issues withsome really old and esoteric syntax.Please take it for a spin and give me some feedback. like to knowif it helps you, and if so - how? ;)When you first launch the app, you will have to specify a directorywhere the source code like to analyze lives. You can choose toprocess sub directories or not.Hit "Process files" and let it run. see the tool logging processedfiles as it goes.If you run into an ERROR (it gives a line number) it most likely raninto some syntax that it like. worry about that. At leastnot yet... ;)Once finished, the treeview at the bottom will be populated. listall used units (and how many times each one was used), number of files,number of lines, and number of instances of quite a few things that mayor may not be interesting to you, such as String, Read, Write, SizeOf,etc.Each node can be expanded and this is where it gets interesting. number of instances of each token per file and as a percentageof all instances of that token found.Should you be daring enough to want stats on your own custom tokens,feel free to put them in the box that says "GetTempFileNameA" and hit"Add Token". Nothing will happen quite yet. Add as many tokens as youwant, hitting "Add Token" between each one. Then hit "Process files"again and you will get your custom stats added to the tree view.Oh, BTW, "Save Report" simply saves a flat version of the tree viewto a file.Source code is included.Good luck, enjoy, and let me know how it goes!Thanks!

Read More...




Sponsored Links




Read Next: CCR Exif v0.9.8a - classes to read/write Exif metadata



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe