An extensible framework for formatting/statistical text

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.