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

Paste method capable of automatically correcting errors and device thereof

An error and automatic technology, applied in the direction of software testing/debugging, etc., can solve problems such as unsolvable problems, compilation errors, and inability to perform automatic corrections, and achieve the effect of improving development efficiency and quality.

Inactive Publication Date: 2009-12-09
PANASONIC CORP
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The method proposed in Patent Document 1 is only effective for judging by comparing the context, especially for errors that occur in code duplication that constitutes a complete sentence, such as while loops or if / then / else, so for copying files and inserting If there is a code with the same variable name in the point context, there is nothing to do
[0006] For example, if there is a variable declaration with the same name in both the content of the clipboard and the pasting destination, or there is no corresponding declaration for the variable in the clipboard and there is no declaration of the variable in the pasting destination, a compilation error or bug will occur, causing the program to Development efficiency is greatly reduced
[0007] In addition, in the method proposed in Patent Document 1, since the context information must be copied to the specified place on the clipboard at the same time when copying, if the type of error is that there is too much information in the clipboard, automatic correction cannot be performed
The method proposed in Patent Document 1 is only applicable to grammatical errors, and it cannot be automatically corrected if the cause of the error is not caused by grammatical problems
In addition, the method proposed in Patent Document 1 limits the method of copying. If the content copied in a general tool is pasted, the problem to be solved in Patent Document 1 cannot be solved.

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
  • Paste method capable of automatically correcting errors and device thereof
  • Paste method capable of automatically correcting errors and device thereof
  • Paste method capable of automatically correcting errors and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. For clarity and conciseness, detailed descriptions of known functions and constructions incorporated herein will be omitted to prevent them from obscuring the subject matter of the present invention.

[0033] figure 1 A schematic diagram showing an operating environment of a method according to an embodiment of the present invention. Such as figure 1 As shown, an integrated development environment (IDE) 100 includes a code editor 110 , a compiler 120 , a control unit 130 and a debugger 140 .

[0034] The code editor 110 provides editing functions for the source code in the source code file 210, such as adding, deleting, copying, pasting and other functions, and stores the edited source code file 210 in a memory (not shown). The compiler 120 compiles the project file (source code file) into a binary executable file 220 according to the c...

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 discloses a paste method capable of automatically correcting errors and a device thereof, which are used for improving the program quality and the development efficiency. The method comprises the following steps: inserting Chinese text formatting source codes in a clipboard into an appointed position of a file; parsing the source codes and codes around the appointed position of the file to obtain corresponding code information; analyzing whether the insertion operation can generate errors or not based on the code information and obtaining the types of the generated errors; and correcting the errors according to the obtained types. The method can avoid the problems caused by taking variables representing different meanings as a variable for use because of paste, improve the program quality, automatically correct other compile errors and improve the development efficiency.

Description

technical field [0001] The invention relates to the processing of source codes, in particular to a pasting method and equipment capable of automatically correcting errors, which can reduce errors in developed programs. Background technique [0002] Generally, program development tools have a source code pasting function, which is convenient for users to copy previously written source code or source code in another file to a target location and perform relevant processing on the pasted source code, so as to improve program development efficiency. [0003] For example, in Eclipse for Java, if the copied code contains classes and there is no relevant header file declaration in the pasted Java file, the corresponding header file will be automatically added to the pasted Java file. However, this function is only useful in the Eclipse tool. If the user copies part of the content from the source code file opened by another text editing tool to the target location, the corresponding...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 黄泉杰
Owner PANASONIC CORP
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