The invention discloses a multi-storage medium grammar generation method and
system based on a grammar analyzer, and relates to the technical field of grammar construction.The method comprises the steps of 1, statement obtaining, 2, normal statement word screening, 3, normal statement type analysis, 4, normal statement
keyword analysis and 5, target statement generation. According to the method, the statement type of the normal statement is judged by analyzing the position and the
byte number of each fixed word of the normal statement, and each key word of the normal statement is further screened into a table name word, each field word, each
data type word and each constraint word, so that the reference statement for
database conversion is quickly positioned, and the
database conversion efficiency is improved. The syntactic analyzer can conveniently carry out statement conversion of multiple databases, the operation duration of a computer is shortened, the working efficiency is improved, and therefore
economic benefits are brought to companies.