Code syntax error repairing method based on incomplete abstract syntax tree
An abstract syntax tree and syntax error technology, which is applied in the cross-application field of deep learning and software engineering, and can solve problems such as insufficient use of code structure and semantic information, simplicity, and inability to accurately locate errors.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0107] In order to deepen the understanding of the present invention, the present invention will be further described below in conjunction with the accompanying drawings and embodiments, which are only used to explain the present invention and do not limit the protection scope of the present invention.
[0108] figure 1 It is a flowchart of a code syntax error repairing method based on an incomplete abstract syntax tree. First, the system generates an incomplete AST tree of the error code, encodes the code information according to the text and the AST tree, uses the neural network to predict the location of the grammatical error in the code and the content of the repair, restores and verifies the new code, and repeats iterative repairs until all are repaired Grammatical errors.
[0109] figure 2 A specific flowchart for generating an input sequence of code-based incomplete abstract syntax trees is described. We choose the PYCParser tool to compile the wrong C code....
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


