Automatic transformation between programs' flowcharts and codes based on graph grammar
Zhu Yu · Computer Engineering and Science · 2015
Flowchart is very important in the lifecycle of software engineering.During the design of a program,programmers usually need to draw a structural flowchart before coding.While in the course of the analysis and maintenance of a program,it can be helpful for programmers to analyze the program's structure by firstly reversing the source codes to a corresponding flowchart.Obviously,automatical transformation between flowcharts and source codes can save plenty of human resources and lots of development time.We discuss how to make use of the Edge-based Graph Grammar(EGG)to automatically perform the transformation,and demonstrate the realization of grammatical analysis and reverse generation of flowcharts by applying the reduction and derivation operations of the EGG through an example.