摘要 |
PROBLEM TO BE SOLVED: To provide a system and method for analyzing programs, capable of fully analyzing a program and having versatility. SOLUTION: The method for analyzing the program to analyze the program and characterized by providing a step S1 to generate token strings by performing loxical analysis of the program described using a structured programming language, a step S2 for generating an analytical tree and a syntax tree and a syntactic tree by performing syntactical analysis of the token strings, a step S3 to generate CFG to the syntax tree and a first DFG to the syntactical tree, a step S4 for generating a second DFG corresponding to a node of the generated CFG and a step S5 for displaying the generated CFG, the first and second DFGs is provided.
|