摘要 |
A program analyzer in which a part of an inputted C-source program is either a declaration or a function definition. To define a start position of the function designated in the C-source program at high speed and high precision, a DD-detection processor is provided for detecting a direct declarator or a character/token ";" in the outside of the characters/tokens "{" and "}" of the part of the C-source program. An identification processor determines that the C-source program is the declaration when the DD-detection processor detects the character/token ";". The identification processor further determines that the C-source program is the declaration when the DD-detection processor detects the direct declarator and further detects that the next character/token of the direct declarator indicates one of characters/tokens "=", "," and ";". The identification processor further determines that the C-source program is the function definition when the DD-detection processor detects the direct declarator and further detects that the next character/token of the direct declarator indicates the characters/tokens except for above mentioned characters/tokens.
|