摘要 |
PURPOSE:To acquire differential information of the processing content of the program of two files by performing a word analysis, pre-processing command analysis, and syntax analysis to prepare the logical line based on the result. CONSTITUTION:A C language program differential acquisition processor 111 reads two source programs 101 and 102 from the main storage device, and generates the differential information 112 on the storage device. In this case, a lexical analysis part 103 performs the word analysis of the read source program, passing the word token to a pre-processing command analysis part 104. The pre-processing command analysis part 104 is divided into the pre-processing command which starts from # and the real program. A syntax analysis part 105 performs the syntax analysis of word token consisting of the real program according to the grammar of the C language. A logical line generation part 106 generates the pre-processing command logical line from the word token consisting of the pre-processing command and generates the real program logical line from the word token consisting of the real program. A comparison part 107 inputs the logical lines and the comparison result is outputted to the storage device. |