Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

System and method for automatically marking source code

An automatic tagging and source code technology, applied in the field of data processing, can solve the problems of time-consuming and laborious, omission, non-unique branch ID, etc., and achieve the effect of reducing processing complexity and manual intervention.

Active Publication Date: 2014-01-01
YONYOU NETWORK TECH
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, in related technologies, programmers manually maintain branch IDs and comment statements in the source code. On the one hand, it is extremely time-consuming and laborious for programmers; on the other hand, due to the huge number of branches in the source code, It is easy to happen that the branch ID is not unique, missing, etc.

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
  • System and method for automatically marking source code
  • System and method for automatically marking source code
  • System and method for automatically marking source code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to be able to understand the above objectives, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the application and the features in the embodiments can be combined with each other if there is no conflict.

[0036] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited to the specific details disclosed below. Limitations of the embodiment.

[0037] figure 1 A schematic block diagram of a system for automatically marking source code according to an embodiment of the present invention is shown.

[0038] Such as figure 1 As shown, the system 100...

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 provides a system for automatically marking a source code. The system comprises a code reading unit for reading the source code of any source file into a character string variable and decomposing the character string variable into a string array, a level determining unit for prereading retraction format characters of multiple rows of statements and determining statement levels, a type judging unit for determining whether each statement is a branch / loop statement or not according to an initial keyword, a statement processing unit for adding a unique identification and a comment statement in each branch of a statement body part of each branch / loop statement, and a variable storing unit for storing outcome variables into the source file after all the statements in the string array are processed. The invention further provides a corresponding method for automatically marking the source code. By adopting the technical scheme, branch / loop statements in the source code can be automatically identified, and the unique identifications and rem statements are automatically added, so that manual intervention is reduced, and the processing complexity is lowered.

Description

Technical field [0001] The present invention relates to the technical field of data processing, and in particular, to a system for automatically marking source code and a method for automatically marking source code. Background technique [0002] Black box testing is a testing method based on software product requirements and design specifications, focusing on confirming and verifying whether the software product meets the specifications. White box testing is based on source code logic testing, focusing on confirming and verifying whether the software source code meets the development specifications, whether the business logic meets the design requirements, and focuses on the statement coverage and path coverage in the source code business logic. [0003] The above two test methods focus on different test objects and different evaluation indicators. For a long time, the industry has formed a complete black box testing theory method tool system and white box testing theory method t...

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): G06F9/30
Inventor 曹峰
Owner YONYOU NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products