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

Function execution method, building block function rewriting method and related equipment

An execution method and building block technology, applied in the field of graphical programming, can solve problems such as language flexibility and creative limitations

Active Publication Date: 2022-08-02
北京聪明核桃教育科技有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiment of the present application is to provide a function execution method, a building block function rewriting method and related equipment to solve the problem that the flexibility and creativity of the language in the programming platform are greatly limited

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
  • Function execution method, building block function rewriting method and related equipment
  • Function execution method, building block function rewriting method and related equipment
  • Function execution method, building block function rewriting method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] In order to improve programming efficiency, reduce programming difficulty, and facilitate learning the basic knowledge of programming, a graphical programming platform represented by Scratch has appeared on the market. In these programming platforms, some basic building blocks are provided, and a built-in function is correspondingly configured for each basic building block, so that each basic building block can realize a certain function. Users only need to drag the corresponding building blocks for splicing and assembly, and then they can realize programming creation, which has the advantages of low threshold and simple realization.

[0039] However, after research, the inventor found that in these programming platforms, the essence of the building block is a preset built-in function, and the definition of the function is derived from the internal implementation of the engine of the programming platform, that is, the implementation of the function depends on the engine ...

Embodiment 2

[0084] On the basis of the first embodiment, this embodiment takes the process of rewriting the function for the basic building block of "moving step" in the scratch programming platform as an example, and further exemplifies this application.

[0085] First, the programming platform detects that the user edits a custom function on a specific UI interface (for example, a given interface dedicated to writing custom functions), and drags a basic block to the custom function define columns (eg Figure 4 In the first column shown), determine that the basic building block is the target building block corresponding to the custom function written this time, and the function name of the custom function written can be compared with the built-in function corresponding to the target building block. The function names are associated, and the association is saved in the target information of the current role in the form of an SB3 file.

[0086] Exemplarily, the built-in function correspon...

Embodiment 3

[0093] Based on the same inventive concept, the embodiment of the present application also provides a function execution apparatus 700 and a building block function rewriting apparatus 800 . see Figure 7 and Figure 8 shown, Figure 7 shows using figure 2 the function execution means of the method shown, Figure 8 shows using Image 6 The block function of the method shown is rewritten. It should be understood that for the specific functions of the apparatus 700 and the apparatus 800, reference may be made to the above description, and to avoid repetition, the detailed description is appropriately omitted here. The device 700 and the device 800 include at least one software function module that can be stored in a memory in the form of software or firmware or fixed in the operating system of the device 700 and the device 800 . specifically:

[0094] see Figure 7 As shown, the apparatus 700 is applied to a programming platform, wherein a plurality of basic building bl...

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 function execution method, a building block function rewriting method and related equipment which are applied to a programming platform, a plurality of basic building blocks are provided in the programming platform, and each basic building block corresponds to a built-in function. The function execution method comprises the steps that when an execution instruction is received, a function corresponding to a building block indicated by the execution instruction is executed; wherein the building blocks indicated by the execution instruction comprise target building blocks corresponding to the custom function; the self-defined function is a function for realizing a set function after being assembled according to a built-in function provided by the programming platform. Thus, when the target building block is executed in the programming platform, the user-defined function can be executed, other functions except the basic function provided by the programming platform are achieved, and therefore the flexibility and creativity of languages in the programming platform are improved. Furthermore, the custom function can be associated with the basic building blocks, so that the function of the building blocks is rewritten, and the flexibility and creativity are further improved.

Description

technical field [0001] The present application relates to the technical field of graphical programming, and in particular, to a method for executing functions, a method for rewriting functions of building blocks, and related devices. Background technique [0002] Graphical programming is a programming method that encapsulates the underlying implementation, and users only need to simply drag and drop building blocks (also called code blocks in many literatures) to complete corresponding programming tasks with complex logic. [0003] At present, in the field of graphical programming, various programming platforms including Scratch often provide some basic building blocks for users to program. In the programming platform, the essence of the building block is a preset built-in function, and the definition of the function is derived from the internal implementation of the engine of the programming platform, that is, the implementation of the function depends on the version of the...

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/30G06F17/15
CPCG06F8/34G06F8/315G06F17/15Y02D10/00
Inventor 刘彤
Owner 北京聪明核桃教育科技有限公司
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