Patent ID: 8331694

Claim:
A pattern information generating method performed using: a pattern information storage portion in which at least one piece of first command pattern information, which is information indicating a command pattern of a first source program, can be stored; a specified information storage portion in which at least one piece of specified information, which is at least one of a command word and control code specified in advance, can be stored; a conversion word storage portion in which a conversion word, which is a character string indicating the type of an unfixed word, among the types of unfixed words including at least one of a variable, a function name and a literal character, and a conversion condition, which is information specifying an unfixed word that is to be converted into the conversion word, can be stored in association with each other; a first source program accepting portion; a comparing portion; and a pattern accumulating portion, the method comprising: a first source program accepting step using the first source program accepting portion, of accepting the first source program; a comparing step using the comparing portion, of fetching at least one piece of conversion unit information, which is information of a conversion unit functioning as a unit in converting the first source program into a second source program, and representing information in a range from the appearance of one piece of the specified information stored in the specified information storage portion to the next appearance of one piece of the specified information, from the first source program, and comparing each piece of the fetched conversion unit information with the first command pattern information stored in the pattern information storage portion; a pattern accumulating step using the pattern accumulating portion, of accumulating comparison command pattern information as new first command pattern information in the pattern information storage portion, the comparison command pattern information being information indicating a command pattern that corresponds to the conversion unit information judged in the comparing step to match none of the first command pattern information, and that is constructed by processing in which among character strings contained in the conversion unit information judged to match none of the first command pattern information, a character string that matches the conversion condition stored in the conversion word storage portion is converted into the conversion word associated with the conversion condition.