doi: 10.4304/jsw.7.5.1109-1120
Automatic Conversion of Structured Flowcharts into Problem Analysis Diagram for Generation of Codes
- School of Computer Science and Technology, Harbin Institute of Technology, Harbin, 150001, China
Abstract
Compared with flowchart, problem analysisdiagram (PAD) can not only be used to describe thesequence of program but also the hierarchy structure. It isof great significance to automatically convert flowchart toPAD for generation of codes. There are some deficiencies inexisting researches, and their key algorithms andtechnologies are not elaborated. By analyzing thecharacteristics of PAD and structured flowchart, a codingstrategy is proposed, and a structure identification andcoding algorithm are put forward for structured flowdiagram and PAD. Based on the coding strategy atransformation algorithm which can transform flowchartinto a semantically equivalent PAD is proposed. Then byusing recursive algorithm the specific language code aregenerated from PAD. Finally a integrated developmentplatform is developed using such algorithms, includingflowchart modeling, code automatic generation, andCDT\GCC\GDB. The correctness and effectiveness ofcoding strategy and algorithm, the structuraltransformation from flowchart to PAD, and automaticgeneration of codes based on PAD have been verifiedthrough practical operations.
Keywords
- Automatic
- generation
- of
- codes;
- structure
How to Cite
Xiang-Hu Wu, Ming-Cheng Qu, Zhi-Qiang Liu, and Jian-Zhong Li, "Automatic Conversion of Structured Flowcharts into Problem Analysis Diagram for Generation of Codes," Journal of Software, vol. 7, no. 5, pp. 1109-1120, 2012. https://doi.org/ 10.4304/jsw.7.5.1109-1120
Copyright & License
Copyright © 2012 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).
