GeekArticles
Programming
Delphi
Programming
DelphiUnicode Statistics Tool
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!
Sponsored Links
Related Topics
Subscribe via RSS
Delphi
- A load of ASP.NET related tutorials, articles, tips and tricks!
- How to move PageControl's tabs using drag'n'drop
- Charts in database applications
- Creating Components Dynamically (at Run-Time)
- The role of the "AOwner" parameter in the Create constructor
- Creating a roll up form (with animation)
- Poll: Do you already have some experience with Delphi?
- Creating a database from Delphi code
- TMemoBar - T(Custom)Memo extender
- How to click-and-select a line in TMemo
