Code conversion method and device, electronic equipment and storage medium

A code conversion and code technology, applied in the computer field, can solve problems such as difficult to understand codes and code correspondence, and achieve the effect of improving readability

Pending Publication Date: 2021-03-30
UBTECH ROBOTICS CORP LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, when the user sees the code converted by the graphical programming unit, it is impossible to cor

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
  • Code conversion method and device, electronic equipment and storage medium
  • Code conversion method and device, electronic equipment and storage medium
  • Code conversion method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0022] Embodiment one

[0023] figure 1 It is a flow chart of a code conversion method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of converting graphics program units into specified codes. This method can be executed by the code conversion device provided by the embodiment of the present invention. The device can be realized by software and / or hardware. see figure 1 , the code conversion method provided by this embodiment includes:

[0024] Step 110: Determine the target graphics program unit in response to the user's selection operation, and determine and display the target program interface code associated with the target graphics program unit from the candidate program interface codes.

[0025] Among them, the graphic program unit is a preset minimum program unit displayed in graphic form, and each graphic program unit is used to realize different preset functions, and the user can adjust the function by modifying the adj...

Example Embodiment

[0035] Embodiment two

[0036] figure 2 It is a flow chart of a code conversion method provided by Embodiment 2 of the present invention. This technical solution is a supplementary explanation for the process of determining and displaying the target program interface code associated with the target graphics program unit from the candidate program interface codes. . Compared with the above solution, the specific optimization of this solution is to determine and display the target program interface code associated with the target graphics program unit from the candidate program interface codes, including:

[0037] According to the target graphics program unit, determine the target correspondence relationship from the candidate correspondence relationship between the graphics program unit and the program interface code;

[0038] According to the target corresponding relationship, determine and display the target program interface code associated with the target graphics progra...

Example Embodiment

[0055] Embodiment 3

[0056] image 3 This is a schematic structural diagram of a code conversion apparatus provided in Embodiment 3 of the present invention. The apparatus can be implemented in hardware and / or software, can execute a code conversion method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. like image 3 As shown, the device includes:

[0057] a code determination module 310, configured to determine a target graphics program unit in response to a user's selection operation, and determine and display a target program interface code associated with the target graphics program unit from the candidate program interface codes;

[0058] The code conversion module 320 is configured to convert the target program interface code into executable code according to the code conversion logic corresponding to the target program interface code in response to the user's target graphic...

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 embodiment of the invention discloses a code conversion method and device, electronic equipment and a storage medium. The method comprises the steps of determining a target graphic program unit inresponse to a selection operation of a user, and determining and displaying a target program interface code associated with the target graphic program unit from candidate program interface codes; andin response to a target graphic program unit running request of a user, converting the target program interface code into an executable code according to a code conversion logic corresponding to thetarget program interface code so as to obtain a running result of the target graphic program unit by running the executable code. By running the technical scheme provided by the embodiment of the invention, the problem that the codes cannot be in one-to-one correspondence with the graphic programming units after a user sees the codes obtained by conversion of the graphic programming units and thecodes are difficult to understand can be solved, and the effect of improving the readability of the codes is achieved.

Description

technical field [0001] Embodiments of the present invention relate to computer technology, and in particular, to a code conversion method, device, electronic equipment, and storage medium. Background technique [0002] Graphical programming is popular especially in young programming education because of its concise and easy-to-understand features. Since the programs of graphical programming are generally not directly executable, they need to be converted into executable codes. [0003] The existing method is to directly display the converted code. However, various programming languages ​​have some grammars that are difficult for beginners to understand, such as Python coroutines, C++ templates, and C language pointers. Therefore, when the user sees the code converted by the graphical programming unit, he cannot correspond the code to the graphical programming unit one by one, making it difficult to understand the code. Contents of the invention [0004] Embodiments of th...

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/34G06F8/40
CPCG06F8/34G06F8/40
Inventor 陈远亮崔宁王轶丹
Owner UBTECH ROBOTICS CORP LTD
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
Try Eureka
PatSnap group products