Description
This article is the Textformator framework of the documentation, formerly known as the "Textformator framework introduce", you can also find at the following Web site for more information about Textformator, including the source code and this article:
Introduction
The first reason for the germination of Textformator is related to the following two things:
1, at the beginning of the year in CSDN Forum on a question, the content is to ask where there is a good "Code statistical analysis Tool", then did not get any response.
2, some time ago, a colleague showed me a small tool he wrote in his spare time, the function of which is to generate a shaded HTML text based on a C + + program.
Since then, I've been trying to find a common solution to meet a variety of application requirements, including the ones mentioned above. Fortunately there was a relatively free time recently, so I was able to put this idea into practice. I spent a week, completed from design to coding to add document annotation all work, of course, including writing this ^ ^, which let me back to the University of Creative passion. Remember still big three o'clock, oneself once spent 3 days in assembly language to write a text state can support the hierarchical menu operation of "Student file management program." Perhaps just a momentary interest, perhaps this simple framework does not necessarily have considerable practical value, perhaps there is a sophisticated tool for the analysis of Code statistics. However, writing this framework, for me, is a good experience of using OO design ideas and practicing STL. And, as the purpose of the release of Open source, but also in the hope that interested colleagues, can continue to develop and improve on this basis, which has more flexibility and pertinence than ready-made tools.
For the framework, if you have any good suggestions, ideas or questions, please contact me: moying@etang.com
function Introduction
This is an extensible application framework for open source, and you can extend the framework code to meet the needs of different applications.
Textformator is suitable for processing the source code of multiple programming languages (e.g., c/c++,java,pascal,masm) while also supporting plain text processing, which can be handled as follows:
1, any form of formatted output, such as: The generation of shaded HTML text, indented layout, delete comment line.
2, different forms of code statistics analysis, such as: keyword lookup, comment line statistics, function statistics.
Main Features
The code is published in open source and uses OO design ideas to be flexible and scalable.
Based on the C + + STL, and strive to have considerable portability.