System and method for measuring syntax coverage percentage
First Claim
1. A syntax coverage percentage measuring system comprising:
- a BNF (Backus Normal (Naur) Form) rule check table which has BNF data respectively corresponding to BNF syntax rules;
a first file reading section which reads each of test input files and (carries out lexical analysis to data of each of the read test input files to classify into tokens;
a first syntax analyzing section which carries out syntax analysis to each of said tokens, and marks one of said BNF data of said BNF rule check table corresponding to said token;
a coverage percentage output section which acquires a total number of said BNF data and a number of said marked BNF data from said BNF rule check table, and calculates a coverage percentage based on the total number of said BNF data and the number of said marked BNF data; and
an output section which outputs said coverage percentage calculated by said coverage percentage output section.
1 Assignment
0 Petitions
Accused Products
Abstract
A syntax coverage percentage measuring system includes a BNF rule check table which has BNF data respectively corresponding to BNF syntax rules. A first file reading section reads each of test input files and carries out lexical analysis to data of each of the read test input files to classify into tokens. A first syntax analyzing section carries out syntax analysis to each of the tokens, and marks one of the BNF data of the BNF rule check table corresponding to the token. A coverage percentage output section acquires a total number of the BNF data and a number of the marked BNF data from the BNF rule check table, and calculates a coverage percentage based on the total number of the BNF (data and the number of the marked BNF data. An output section outputs the coverage percentage calculated by the coverage percentage output section.
-
Citations
28 Claims
-
1. A syntax coverage percentage measuring system comprising:
-
a BNF (Backus Normal (Naur) Form) rule check table which has BNF data respectively corresponding to BNF syntax rules;
a first file reading section which reads each of test input files and (carries out lexical analysis to data of each of the read test input files to classify into tokens;
a first syntax analyzing section which carries out syntax analysis to each of said tokens, and marks one of said BNF data of said BNF rule check table corresponding to said token;
a coverage percentage output section which acquires a total number of said BNF data and a number of said marked BNF data from said BNF rule check table, and calculates a coverage percentage based on the total number of said BNF data and the number of said marked BNF data; and
an output section which outputs said coverage percentage calculated by said coverage percentage output section. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A syntax coverage percentage measuring system comprising:
-
a syntax coverage percentage measuring unit program generating unit which generates a syntax analyzing section program and a BNF rule check table program from a BNF file in which BNF syntax rules are described; and
a syntax coverage percentage measuring unit which reads said syntax analyzing section program and said BNF rule check table program generated by said syntax coverage percentage measuring unit program generating unit, tests data of each of test input files based on said syntax analyzing section program using said BNF rule check table program, and generates said syntax coverage percentage for each of said test input files based on a test result. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A method of measuring a syntax coverage percentage, comprising the steps of:
-
reading each of test input files to carry out lexical analysis to data of each of the read test input files to classify into tokens;
carrying out syntax analysis to each of said tokens, to mark one of BNF data of a BNF rule check table corresponding to said token, said BNF rule check table having said BNF data respectively corresponding to BNF syntax rules;
acquiring a total number of said BNF data and a number of said marked BNF data from said BNF rule check table;
calculating a coverage percentage based on the total number of said BNF data and the number of said marked BNF data; and
outputting said coverage percentage calculated by said coverage percentage output section. - View Dependent Claims (22, 23, 24, 25)
-
-
26. A method of measuring a syntax coverage percentage, comprising the steps of:
-
generating a syntax analyzing section program and a BNF rule check table program from a BNF file in which BNF syntax rules are described;
reading said syntax analyzing section program and said BNF rule check table program generated by said syntax coverage percentage measuring unit program generating unit;
testing data of each of test input files based on said syntax analyzing section program using said BNF rule check table program; and
generating said syntax coverage percentage for each of said test input files based on a test result. - View Dependent Claims (27, 28)
-
Specification