摘要 |
A method and computer program for automatically generating flowcharting instructions from an electronic text file of a source code. The steps include identifying the branch statements in the source code, determining the branch destinations for each of the identified branch statements, storing the destinations as destination records in a data structure, and identifying a statement type for each statement. Keys for determining that statement type may be a key work, phrase, punctuation marks or other symbols contained within each source code statement. The method is applied to source code statements written in any computer programming language. The instructions may then be imported into a drawing program where the flowchart may be drawn or viewed. The method may also be applied in reverse, automatically generating an electronic text file of a source code from a flowchart of a computer program.
|