Program code checking method and system for numerical weather forecast mode program
The invention provides a program code inspection method and system for a numerical weather forecast mode program, and the method comprises the steps: carrying out the morpheme analysis of a source code of a to-be-inspected numerical weather forecast mode program through a code analysis module, obtai...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a program code inspection method and system for a numerical weather forecast mode program, and the method comprises the steps: carrying out the morpheme analysis of a source code of a to-be-inspected numerical weather forecast mode program through a code analysis module, obtaining a morpheme sequence of the source code, and carrying out the grammatical analysis of the morpheme sequence, and generating an abstract syntax tree; the standardized inspection module performs standardized inspection of each standardized inspection item on the source code based on each node and node relationship in the abstract syntax tree to obtain an inspection result of each standardized inspection item; and the check result generation module integrates the check results of the standardized check items to obtain a standardized check result of the source code. By the adoption of the method, the labor cost consumed when program code checking is conducted on the numerical weather forecast mode program is reduce |
---|