Patent Document ID: 8875110
Application ID: 13634751
Patent Flag: 1

Claim One:
1. A code inspection executing system for Advanced Business Application Programming (ABAP) source codes, comprising: an ABAP source codes grammar analyzer implemented by a computer, analyzing the ABAP source codes in terms of vocabulary, syntax, and signification thereof and storing analysis results in a data structure of an abstract syntax tree and a symbol table; and an ABAP source codes defect checker implemented by the computer, generating a code defect report on a computer screen in order to check a code defect of a source code and a grammar structure and modify the code defect, wherein the ABAP source codes grammar analyzer implemented by the computer includes a lexical analysis module reading a file including the ABAP source codes as an object of code inspection and separating the ABAP source codes of the file into token units according to an ABAP grammar (BNF) defined in advance, the token units being a series of character string and including keyword, identifier, symbol identifier, constant, operator, a syntactic analysis module inspecting whether the syntax (grammar) of each token unit is in contravention of the ABAP grammar defined in advance, generating a grammar error message relating to the file on the computer screen if the token unit has a grammar error, or analyzing syntax structures of the token units and extracting a relationship of a control flow between the syntaxes structures if there is no grammar error, an abstract syntax tree storage processing module storing the relationship of a control flow extracted from the syntactic analysis module in the data structure of the abstract syntax tree, a semantic analysis module extracting, from the data structure of the abstract syntax tree, symbol patterns, a connection relationship between the symbol patterns and defective pattern structures corresponding to the symbol patterns for inspection, the symbol patterns including class, method, variable, type, function, event, dialog and processing block, and a symbol table storage processing module storing the information extracted from the semantic analysis module in the data structure of the symbol table, and wherein the ABAP source codes defect checker implemented by the computer includes an ABAP rule database storing coding rules of various categories, symbol patterns of each rule, a defective pattern structure of each rule and a fault condition of each rule, said categories including ABAP and SQL coding style, coding standard, architecture standard, SQL standard, run-time error and security vulnerability, a ABAP rule managing module selecting the coding rules from the ABAP rule database, searching symbol values of the symbol table corresponding to the symbol and the defective pattern structure related to the selected rules, extracting all grammatical structures and the source code corresponding to the searched symbol values from the data structure of the abstract syntax tree, and transmitting them to a program path analyzing module, the program path analyzing module inspecting the grammatical structures and the source code of each symbol value extracted from the ABAP rule managing module according to a program path pattern, the defective pattern structures and the fault condition of the selected rules, the program path pattern including one of control flow, control and data flow and control flow and call, a code defect report generating module generating the code defect report on the computer screen if there is any defect violating the selected code rule.