Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

A source code annotation automatic generation method and system

An automatic generation and source code technology, applied in code compilation, program code conversion, neural learning methods, etc., can solve problems such as understanding errors, error information expansion, and software development and management difficulties, and achieve the effect of reducing workload

Active Publication Date: 2019-05-24
CHINA STANDARD SOFTWARE
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Outdated, incorrect, or missing program source code comments that can lead to misinterpretation by other programmers on the team
The situation may deteriorate further, for example, it is difficult to build an experimental environment for computer programs, and without an experimental environment, it is impossible to understand the internal working principles of computer programs by monitoring and analyzing the internal operating procedures and internal processing mechanisms of computer programs
Therefore, individuals in the team will have understanding errors, and at the same time, information will be lost in the dissemination of information among team members, and error information will continue to expand, resulting in continuous difficulties in software development and management.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A source code annotation automatic generation method and system
  • A source code annotation automatic generation method and system
  • A source code annotation automatic generation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to have a further understanding of the technical solution and beneficial effects of the present invention, the technical solution of the present invention and its beneficial effects will be described in detail below in conjunction with the accompanying drawings.

[0061] The traditional programming language forms an abstract syntax tree after lexical and grammatical processing, and program source code comments are the natural language used by programmers to describe the internal operating mechanism of the program. To solve the problem of providing enough high-level information, the source code annotation method and system based on the recursive neural network and the abstract syntax tree provided by the present invention obtain the annotation of the program source code by processing the recursive neural network in natural language, so that the recursive neural network It is able to deal with the problems of the context and context of those inputs. Since the inte...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a source code annotation automatic generation method and system. Semantic analysis is carried out on a first source code and an abstract syntax tree is generated, Therefore, the internal mapping relation between the natural language and the program language is established, and the second source code is annotated according to the mapping relation. The computer efficiently analyzes the program language and then maps the program language to the corresponding natural language, so that a programmer can efficiently and easily understand the function realized by the source code. And a programmer is helped to quickly know the internal operation mechanism of the computer program, so that the programmer is helped to quickly identify defects and vulnerabilities in software design. The method has universality. The workload problem of manually analyzing the repeated source codes in the prior art is solved, and time and cost expenditure caused by analyzing the repeated source codes are reduced.

Description

technical field [0001] The invention relates to a software source code analysis tool, in particular to a method and system for automatically generating source code annotations based on a recursive neural network and an abstract syntax tree. Background technique [0002] Artificial intelligence has become a hot topic around the world, with AlphaGo based on deep learning beating Lee Sedol. Artificial intelligence algorithms are constantly being applied in various industries. The large amount of data accumulated by various industries in the late industrial age makes the random probability model clearer and more able to reflect objective laws. Therefore, reasonable use of probability theory analysis can obtain industry rules more accurately. As one of the cornerstones of artificial intelligence, probability theory can be extended to all walks of life. [0003] Existing source code analysis tools can help programmers quickly analyze the data structure of program source code an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/41G06N3/06G06N3/08
Inventor 劳生刘艳彬吴春光罗飞范凡申利飞
Owner CHINA STANDARD SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products