CN110134386B - Program editing method and device - Google Patents

Program editing method and device Download PDF

Info

Publication number
CN110134386B
CN110134386B CN201910272610.XA CN201910272610A CN110134386B CN 110134386 B CN110134386 B CN 110134386B CN 201910272610 A CN201910272610 A CN 201910272610A CN 110134386 B CN110134386 B CN 110134386B
Authority
CN
China
Prior art keywords
specified
function
graphical
code
programming language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910272610.XA
Other languages
Chinese (zh)
Other versions
CN110134386A (en
Inventor
肖轶翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Louwai Technology Co ltd
Original Assignee
Chengdu Louwai Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Louwai Technology Co ltd filed Critical Chengdu Louwai Technology Co ltd
Priority to CN201910272610.XA priority Critical patent/CN110134386B/en
Publication of CN110134386A publication Critical patent/CN110134386A/en
Application granted granted Critical
Publication of CN110134386B publication Critical patent/CN110134386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The invention discloses a program editing method, a program editing device, electronic equipment and a computer readable storage medium. The method comprises the following steps: receiving input source code of a specified programming language; responding to an execution request of the source code, and analyzing the source code by using a specified compiler to obtain an analysis code; packaging each graphical code block corresponding to the graphical programming tool into a script function supported by a compiler; calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function; and displaying the execution result according to the graphical programming tool. According to the scheme, the code blocks in the graphical programming tool are packaged again, so that the graphical programming tool is controlled through the specified programming language, and a learner can learn the functional logic in the programming; meanwhile, the execution result of the source code is graphically displayed, so that a user can visually know the execution result of the code, the learning process is also fun, and the use experience of the user is enhanced.

Description

Program editing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a program editing method, a program editing device, electronic equipment and a computer readable storage medium.
Background
With the advent of the internet age, the mastery of computer-related knowledge and technology has slowly become a fundamental knowledge reserve and skill of people, such as programming. In the prior art, people can learn and practice programming through a programming learning system. However, for beginners or learners with small ages, it is a barrier to implement functions under different logics by using programming languages during the programming learning process, which brings difficulties to programming learning. Therefore, a program editing scheme is urgently needed to facilitate the learning of programming.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a program editing method, apparatus, electronic device, and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a program editing method, the method including:
receiving input source code of a specified programming language;
responding to the execution request of the source code, and analyzing the source code by using a specified compiler to obtain an analysis code;
packaging each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler;
calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function;
and displaying the execution result according to the graphical programming tool.
Optionally, the method further comprises:
defining synchronous calling asynchronous script functions by using a specified compiler in a communication bridging mode;
the step of calling the corresponding script function according to the analysis code to obtain the execution result of the graphical code block corresponding to the script function comprises the following steps:
and calling the corresponding script function and the synchronous calling asynchronous script function according to the analysis code to obtain the sequential execution result of the plurality of graphical code blocks corresponding to the script function.
Optionally, the method further comprises:
establishing a corresponding relation between a specified script event and a specified function of a specified programming language;
and when the specified script event is monitored to be triggered, calling a corresponding specified function of the specified programming language according to the corresponding relation and executing.
Optionally, the invoking a corresponding designated function of a designated programming language and executing according to the corresponding relationship includes:
the CallsimAsync provided by the specified compiler calls the corresponding specified function of the specified programming language and executes it.
Optionally, the method further comprises:
judging whether an API function is called in the analysis code;
if the API function is judged to be the same, corresponding operation is carried out according to the type of the called API function.
Optionally, if the called API function is an API function encapsulated by a graphical code block corresponding to the graphical programming tool, performing corresponding operations according to the type of the called API function includes:
and acquiring a corresponding interactive interface according to the called API function.
Optionally, if the called API function is an API function of a third party, performing corresponding operations according to the type of the called API function includes:
sending a corresponding data acquisition request to a corresponding third-party server; and receiving corresponding data returned by the third-party server.
Optionally, if the called API function is a class library supported by other programming languages, performing corresponding operations according to the type of the called API function includes:
and acquiring corresponding objects in the class libraries supported by other programming languages according to the called API function.
Alternatively, the first and second liquid crystal display panels may be,
the specified programming language comprises a Python language; c + + language; the Java language; the JavaScript language;
the graphical programming tool comprises a Scratch programming tool.
Optionally, when the specified programming language is Python language, the specified compiler comprises a Skulpt compiler.
Optionally, before the receiving the input source code of the specified programming language, the method further comprises:
sending a loading request of a program editor based on a specified programming language to a server in response to a request for accessing a specified website;
and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
According to another aspect of the present invention, there is provided a program editing apparatus, including:
a receiving unit adapted to receive an input of a source code of a designated programming language;
the analysis unit is suitable for responding to the execution request of the source code and analyzing the source code by using a specified compiler to obtain an analysis code;
the packaging unit is suitable for packaging each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler;
the execution unit is suitable for calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function;
and the display unit is suitable for displaying the execution result according to the graphical programming tool.
Optionally, the apparatus further comprises:
the defining unit is suitable for defining synchronous calling asynchronous script functions by utilizing a specified compiler in a communication bridging mode;
and the execution unit is suitable for calling the corresponding script function and the synchronous calling asynchronous script function according to the analysis code to obtain the sequential execution result of the plurality of graphical code blocks corresponding to the script function.
Optionally, the apparatus further comprises:
the establishing unit is suitable for establishing a corresponding relation between a specified script event and a specified function of a specified programming language;
and the execution unit is suitable for calling a corresponding specified function of the specified programming language and executing the corresponding specified function according to the corresponding relation when the specified script event is monitored to be triggered.
Alternatively,
and the execution unit is suitable for calling a corresponding specified function of a specified programming language through CallsimaAsync provided by a specified compiler and executing the corresponding specified function.
Optionally, the apparatus further comprises:
the judging unit is suitable for judging whether the API function is called in the analysis code or not; if the API function is judged to be the same, corresponding operation is carried out according to the type of the called API function.
Optionally, the determining unit is adapted to obtain the corresponding interactive interface according to the called API function if the called API function is an API function encapsulated by a graphical code block corresponding to the graphical programming tool.
Optionally, the determining unit is adapted to send an acquisition request of corresponding data to a corresponding third-party server if the called API function is an API function of a third party; and receiving corresponding data returned by the third-party server.
Alternatively, the first and second liquid crystal display panels may be,
and the judging unit is suitable for acquiring corresponding objects in the class libraries supported by other programming languages according to the called API function if the called API function is the class library supported by other programming languages.
Alternatively,
the specified programming language comprises a Python language; c + + language; java language; a JavaScript language;
the graphical programming tool comprises a Scratch programming tool.
Optionally, when the specified programming language is Python, the specified compiler comprises a Skulpt compiler.
Optionally, the apparatus further comprises:
a loading unit adapted to send a loading request based on a program editor of a specified programming language to a server in response to a request for accessing a specified website before the input source code of the specified programming language is received; and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
According to still another aspect of the present invention, there is provided an electronic apparatus, wherein the electronic apparatus includes:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method according to the foregoing.
According to yet another aspect of the invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the aforementioned method.
According to the technical scheme of the invention, the source code of the input specified programming language is received; responding to an execution request of the source code, and analyzing the source code by using a specified compiler to obtain an analysis code; packaging each graphical code block corresponding to the graphical programming tool into a script function supported by a compiler; calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function; and displaying the execution result according to the graphical programming tool. According to the technical scheme of the invention, the code blocks in the graphical programming tool are repackaged, so that the graphical programming tool is controlled by the appointed programming language, and the learner can learn the functional logic in the programming; meanwhile, the execution result of the source code is graphically displayed, so that a user can visually know the execution result of the code, the learning process is also fun, and the use experience of the user is enhanced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various additional advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of a program editing method according to one embodiment of the invention;
FIG. 2 shows a flow diagram of a program editing method according to another embodiment of the invention;
fig. 3 is a schematic structural diagram showing a program editing apparatus according to an embodiment of the present invention;
FIG. 4 shows a schematic structural diagram of an electronic device according to one embodiment of the invention;
fig. 5 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a flowchart of a program editing method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
in step S110, the input source code of the designated programming language is received.
In this embodiment, the source code may be input through an editor, for example, when the specified programming language is Python language, ace may be used as a web editor of Python language; alternatively, the user imports from a specified file.
Step S120, in response to the execution request for the source code, analyzing the source code by using a specified compiler to obtain an analysis code.
After the source code is acquired, in order to implement control of the specified programming language on the graphical editing tool and display an execution result, the execution request may be sent, for example, a code execution control is provided in the display interface, when the control is triggered, it is equivalent to that the user triggers the execution request of the source code, and when the execution request of the source code is received, the source code is parsed in response to the execution request. Considering that the source code is edited based on a certain programming language, when parsing is performed, the source code can be compiled by using a specified compiler, for example, the source code edited by using Python language, and the specified compiler can be Skulpt to parse the source code. The parsed source code is the parsed code.
Step S130, encapsulating each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler.
The secondary development is carried out based on a graphical programming tool, and the calling function of each code block is packaged in a mode that a compiler can point out calling script functions (JavaScript). When the source code is edited by the appointed programming language, the corresponding script function can be directly called after the source code is analyzed by the compiler, and then the control of the corresponding graphical code block in the image language programming tool is realized.
Step S140, according to the analysis code, calling the corresponding script function to obtain the execution result of the graphical code block corresponding to the script function.
Because the script function corresponds to the graphical code block of the graphical editing tool, when the script function is called, the corresponding graphical code block is called, and the control on the graphical code block is realized, namely the control on the graphical editing tool is realized by specifying a programming language.
Step S150, displaying the execution result according to the graphical programming tool.
For example, the specified programming language is Python and the graphical programming tool is Scratch. And performing secondary development based on the Scratch, and packaging the calling function of each block of the Scratch in a mode of calling the JavaScript function which can be supported by the Skumpt. And calling related functions in Python codes, namely controlling Scratch to present corresponding functions.
In this embodiment, the self-writing graphical editing tool library in the specified programming language can be compiled and executed in the specified programming language, and the middle is bridged through script JavaScript communication. The user can then directly control the interface of the graphical editing tool by specifying the programming language. For example, a character interaction of an interface stage zone of a graphical editing tool may be implemented.
Therefore, according to the embodiment, the code blocks in the graphical programming tool are packaged again, so that the graphical programming tool is controlled by the appointed programming language, and the learning of a learner on the functional logic in the programming is facilitated; meanwhile, the execution result of the source code is graphically displayed, so that a user can visually know the execution result of the code, the learning process is also fun, and the use experience of the user is enhanced.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: and defining synchronous calling asynchronous script functions by using a specified compiler through a communication bridge mode.
In step S140, the step of calling the corresponding script function according to the parsed code to obtain the execution result of the graphical code block corresponding to the script function includes: and calling the corresponding script function and synchronously calling the asynchronous script function according to the analysis code to obtain the sequential execution result of the plurality of graphical code blocks corresponding to the script function.
In order to enable a specified programming language to execute a code block by code block sequentially as in graphical editing when controlling graphical code block control in a graphical editing tool, and therefore, to implement synchronous call of asynchronous functions, in the technical solution, a script function is used when controlling the graphical editing tool, and therefore, here, an asynchronous JavaScript function needs to be implemented. Then, during execution, if sequential execution is required, the corresponding script function can be called and the asynchronous script function can be called synchronously, so that sequential execution of the called multiple graphical code blocks can be realized, and a corresponding execution result is obtained. For example, in order to implement Python, when controlling Scratch, one code block and one code block can be sequentially executed like Scratch, and therefore, it is necessary to implement synchronous call of an asynchronous JavaScript function, and the synchronous call of the asynchronous JavaScript function may be defined by supension using Skulpt.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: establishing a corresponding relation between a specified script event and a specified function of a specified programming language; and when the specified script event is monitored to be triggered, calling a corresponding specified function of the specified programming language according to the corresponding relation and executing.
Calling a script event binding function in the specified programming language, and transferring the script event binding function to the specified programming language function needing to be bound by the event, wherein the function is packaged into a script object by a compiler. Corresponding events (such as mouse events, keyboard events and the like) are monitored through the script, and the event bound to the events triggers execution of functions, namely, the functions of the specified programming language. When the event is triggered, the corresponding event can be executed by calling the corresponding specified programming language function after the code is analyzed by the compiler.
For example, a JavaScript event binding function is called in Python, and is passed to a Python function that needs to be bound by the event, and this function is encapsulated by Skulpt as a JavaScript object. Monitoring corresponding events through JavaScript, and triggering an execution function, namely a Python function, for the event binding event. When an event is triggered, the corresponding Python function is called through the CallsimasAsync provided by Skulpt, and the event can be executed.
In a specific example, when the JavaScript monitors a mouse click event, and the click event corresponds to a Python language execution function, the Python language execution function is called to implement execution of a corresponding Python program.
Specifically, the above invoking a corresponding specified function of a specified programming language according to the corresponding relationship and executing includes: the CallsimAsync provided by the specified compiler calls the corresponding specified function of the specified programming language and executes it.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: judging whether an API function is called in the analysis code; if the API function is judged to be the calling API function, corresponding operation is carried out according to the type of the called API function.
During the execution of the source code, a specified API (Application Programming Interface) may be called, and then a corresponding operation should be executed.
Specifically, if the called API function is an API function encapsulated by a graphical code block corresponding to the graphical programming tool, performing corresponding operations according to the type of the called API function includes: and acquiring a corresponding interactive interface according to the called API function.
For example, when a JavaScript-encapsulated API function is called in Python, a corresponding interface is called according to the called API interface to implement interface interaction.
Specifically, if the called API function is an API function of a third party, performing corresponding operations according to the type of the called API function includes: sending a corresponding data acquisition request to a corresponding third-party server; and receiving corresponding data returned by the third-party server.
Specifically, if the called API function is a class library supported by other programming languages, performing corresponding operations according to the type of the called API function includes: and acquiring corresponding objects in the class libraries supported by other programming languages according to the called API function.
In an embodiment of the invention, the specific programming language includes Python language; c + + language; java language; the JavaScript language.
In an embodiment of the invention, the graphical programming tool includes a Scratch programming tool.
Specifically, when the specified programming language is a Python language, the specified compiler includes a Skulpt compiler.
The Skulpt is written in JS (JavaScript), and then Python code can be converted into JS code, so that the Python code can be directly run on the browser.
In one embodiment of the present invention, before receiving the input source code of the specified programming language in step S110, the method shown in fig. 1 further includes: sending a loading request of a program editor based on a specified programming language to a server in response to a request for accessing a specified website; and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
In this embodiment, the input of the source code is input through an editor. When a user accesses a designated programming website, the browser interacts with the server to acquire an environment file required by the loading editor and build a coding environment of a designated programming language. So that the user types the source code of the specified programming language in the editor.
For example, when the specified programming language is Python, ace may be loaded as a web editor in Python.
Fig. 2 is a schematic flow chart of a program editing method according to another embodiment of the present invention, and the technical solution is described by taking Python language and Scratch as examples. As shown in fig. 2, on the client side, after the user opens the web address input by the browser, the browser receives an access request of a programming website; responding to the access request, the browser interacts with a server on the server side, sends an acquisition request for loading the resource of the environment file required by the editor, constructs a Python coding environment after receiving the resource of the environment file required by the editor returned by the server, and loads an encoder; the user types a Python code and clicks to operate; the page JavaScript program can acquire a Python code input by a user, analyze a source code by using a compiler and browse a Python language environment of the current browser; and calling a Scratch encapsulation function to carry out Python encapsulation on the Scratch. Executing the analyzed source code, controlling Scratch, judging whether a server needs to be requested or not, calling a corresponding API function when a function needing to be supported by the server is involved, and sending a request to the server by the JavaScript of the page to receive corresponding data returned by the server; and returning an execution result to the browser after the execution in the Scratch, and feeding the execution result back to the user.
Through the embodiments, in the programming development tool, after the Python/C + +/Java/C/JavaScript program is compiled and run, a Scratch programming statement is generated, and the compiled and run generated programming statement corresponds to a function, a variable, a list, an array and a dictionary in the Python/C + +/C/Java/JavaScript. When the user clicks the generated Scratch programming statement, the corresponding code in Python/C + +/C/Java/JavaScript is run, the running result returns to the Scratch programming statement, and the Scratch programming continues to be executed. In a programming development tool, all programming statements of the Scratch are packaged into a Python/C + +/Java/C/JavaScript module or a class library, a compiling and running class library program can directly call all current or future statements of the Scratch, such as an interface, a sound, an event, a brush and the like, and the functions of the Scratch programming language are completely realized by using the Python/C + +/Java/C/JavaScript language. And integrating and developing a multifunctional class library in Python/C + +/Java/C/JavaScript languages, such as third-party functions of short message sending, voice synthesis, voice recognition, color value recognition, image recognition and the like, and developing various application programs according to the functions in the development. The application platform of the programming tool comprises a Web browser, a Windows client, a Mac client, an Iphone mobile phone browser and an Android/Android mobile phone browser.
Fig. 3 is a schematic structural diagram showing a program editing apparatus according to an embodiment of the present invention. As shown in fig. 3, the program programming device 300 includes:
the receiving unit 310 is adapted to receive an input source code of a designated programming language.
In this embodiment, the source code may be input through an editor, for example, when the designated programming language is Python language, ace may be used as a web editor of Python language; alternatively, the user imports from a specified file.
The parsing unit 320 is adapted to parse the source code by using a specified compiler in response to the execution request for the source code, so as to obtain a parsed code.
After the source code is acquired, in order to implement control of the specified programming language on the graphical editing tool and display an execution result, the execution request may be sent, for example, a code execution control is provided in the display interface, when the control is triggered, it is equivalent to that the user triggers the execution request of the source code, and when the execution request of the source code is received, the source code is parsed in response to the execution request. Considering that the source code is edited based on a certain programming language, when parsing is performed, the source code can be compiled by using a specified compiler, for example, the source code edited by using Python language, and the specified compiler can be Skulpt to parse the source code. The parsed source code is the parsed code.
And the packaging unit 330 is adapted to package each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler.
The secondary development is carried out based on a graphical programming tool, and the calling function of each code block is packaged in a mode that a compiler can point out calling script functions (JavaScript). When the source code is edited by the appointed programming language, the corresponding script function can be directly called after the analysis of the compiler, and then the control of the corresponding graphical code block in the image language programming tool is realized.
The execution unit 340 is adapted to call a corresponding script function according to the analysis code, so as to obtain an execution result of the graphical code block corresponding to the script function.
Because the script function corresponds to the graphical code block of the graphical editing tool, when the script function is called, the corresponding graphical code block is called, and the control on the graphical code block is realized, namely the control on the graphical editing tool is realized by specifying a programming language.
The presentation unit 350 is adapted to present the execution result according to the graphical programming tool.
For example, the specified programming language is Python and the graphical programming tool is Scratch. And performing secondary development based on the Scratch, and packaging the calling function of each block of the Scratch in a mode of calling the JavaScript function which can be supported by the Skumpt. And calling related functions in Python codes, namely controlling Scratch to present corresponding functions.
In this embodiment, the self-writing graphical editing tool library in the specified programming language can be compiled and executed in the specified programming language, and the middle is bridged through script JavaScript communication. The user can then directly control the interface of the graphical editing tool by specifying the programming language. For example, a character interaction of an interface stage zone of a graphical editing tool may be implemented.
Therefore, according to the embodiment, the code blocks in the graphical programming tool are packaged again, so that the graphical programming tool is controlled by the appointed programming language, and the learning of a learner on the functional logic in the programming is facilitated; meanwhile, the execution result of the source code is graphically displayed, so that a user can visually know the execution result of the code, the learning process is also fun, and the use experience of the user is enhanced.
Preferably, the apparatus shown in fig. 3 can be used as a programming tool, or code compiler.
In one embodiment of the present invention, the apparatus shown in fig. 3 further comprises:
and the defining unit is suitable for defining the synchronous calling asynchronous script function by utilizing a specified compiler in a communication bridging mode.
The execution unit 340 is adapted to call a corresponding script function and synchronously call an asynchronous script function according to the analysis code, so as to obtain a sequential execution result of a plurality of graphical code blocks corresponding to the script function.
In order to enable a specified programming language to execute code blocks sequentially in the same way as graphical editing when controlling graphical code blocks in a graphical editing tool, and therefore, synchronous calling of asynchronous functions needs to be implemented. Then, during execution, if sequential execution is required, the corresponding script function can be called and the asynchronous script function can be called synchronously, so that sequential execution of the called multiple graphical code blocks can be realized, and a corresponding execution result is obtained. For example, in order to implement Python, when controlling Scratch, one code block and one code block can be sequentially executed like Scratch, and therefore, it is necessary to implement synchronous call of an asynchronous JavaScript function, and the synchronous call of the asynchronous JavaScript function may be defined by supension using Skulpt.
In one embodiment of the present invention, the apparatus shown in fig. 3 further comprises:
and the establishing unit is suitable for establishing the corresponding relation between the specified script event and the specified function of the specified programming language.
And the execution unit 340 is adapted to call a corresponding specified function of the specified programming language and execute the function according to the corresponding relationship when it is monitored that the specified script event is triggered.
Calling a script event binding function in the specified programming language, and transferring the script event binding function to the specified programming language function needing to be bound by the event, wherein the function is packaged into a script object by a compiler. Corresponding events (such as mouse events, keyboard events and the like) are monitored through the script, and the event bound to the events triggers execution of functions, namely, the functions of the specified programming language. When the event is triggered, the corresponding event can be executed by calling the corresponding specified programming language function after the code is analyzed by the compiler.
For example, a JavaScript event binding function is called in Python, and is passed to a Python function that needs to be bound by the event, and this function is encapsulated by Skulpt as a JavaScript object. Monitoring corresponding events through JavaScript, and triggering an execution function, namely a Python function, for the event binding event. When the event is triggered, the corresponding Python function is called through the CallsimaAsync provided by Skulpt, and the event can be executed.
In a specific example, when the JavaScript monitors a mouse click event, and the click event corresponds to a Python language execution function, the Python language execution function is called to implement execution of a corresponding Python program.
Specifically, on the basis of the above embodiment, the execution unit 340 is adapted to call a specified function of a corresponding specified programming language and execute the specified function through a callstimasync provided by a specified compiler.
In one embodiment of the present invention, the apparatus shown in fig. 3 further comprises:
the judging unit is suitable for judging whether the API function is called in the analysis code or not; if the API function is judged to be the same, corresponding operation is carried out according to the type of the called API function.
During the execution of the source code, a specified API (Application Programming Interface) may be called, and then a corresponding operation should be executed.
Specifically, the determining unit is adapted to obtain the corresponding interactive interface according to the called API function if the called API function is an API function encapsulated by the graphical code block corresponding to the graphical programming tool.
For example, when a JavaScript-encapsulated API function is called in Python, a corresponding interface is called according to the called API interface to implement interface interaction.
Specifically, the judging unit is adapted to send a data acquisition request to a corresponding third-party server if the called API function is a third-party API function; and receiving corresponding data returned by the third-party server.
Specifically, the determining unit is adapted to obtain, according to the called API function, a corresponding object in the class library supported by the other programming language if the called API function is the class library supported by the other programming language.
In an embodiment of the invention, the specific programming language includes Python language; c + + language; the Java language; the JavaScript language.
In an embodiment of the present invention, the graphical programming tool includes a Scratch programming tool.
Specifically, when the specified programming language is a Python language, the specified compiler includes a Skulpt compiler.
The Skulpt is written in js, and then the Python code can be converted into js code, so that the Python code can be directly run on the browser.
In one embodiment of the present invention, the apparatus shown in fig. 3 further comprises:
a loading unit adapted to send a loading request based on a program editor of a specified programming language to a server in response to a request for accessing a specified website before receiving an input source code of the specified programming language; and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
In this embodiment, the input of the source code is input through an editor. When a user accesses a designated programming website, the browser interacts with the server to acquire an environment file required by the loading editor and build a coding environment of a designated programming language. So that the user types the source code of the specified programming language in the editor.
For example, when the specified programming language is Python, ace may be loaded as a web editor in Python.
In summary, according to the technical solution of the present invention, an input source code of a specified programming language is received; responding to an execution request of the source code, and analyzing the source code by using a specified compiler to obtain an analysis code; packaging each graphical code block corresponding to the graphical programming tool into a script function supported by a compiler; calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function; and displaying the execution result according to the graphical programming tool. According to the technical scheme of the invention, the code blocks in the graphical programming tool are repackaged, so that the graphical programming tool is controlled by the appointed programming language, and the learner can learn the functional logic in the programming; meanwhile, the execution result of the source code is graphically displayed, so that a user can visually know the execution result of the code, the learning process is also fun, and the use experience of the user is enhanced.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing an arrangement of this type will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be understood by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the program editing apparatus, the electronic device, and the computer-readable storage medium according to the embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. The electronic device 400 conventionally includes a processor 410 and a memory 420 arranged to store computer-executable instructions (program code). The memory 420 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 420 has a memory space 430 that stores program code 440 for performing any of the method steps shown in fig. 1 and in various embodiments. For example, the memory space 430 for the program code may include respective program codes 440 for implementing respective steps in the above method. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is generally a computer-readable storage medium 500 such as described in fig. 5. The computer-readable storage medium 500 may have memory segments, memory spaces, etc. arranged similarly to the memory 420 in the electronic device of fig. 4. The program code may be compressed, for example, in a suitable form. In general, the memory unit stores program code 510 for performing the steps of the method according to the invention, i.e. program code readable by a processor such as 410, which when run by an electronic device causes the electronic device to perform the steps of the method described above.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiment of the invention discloses A1 and a program editing method, which are characterized by comprising the following steps:
receiving input source code of a specified programming language;
responding to the execution request of the source code, and analyzing the source code by using a specified compiler to obtain an analysis code;
packaging each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler;
calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function;
and displaying the execution result according to the graphical programming tool.
A2, the method as claimed in A1, characterized in that the method further comprises:
defining synchronous calling asynchronous script functions by using a specified compiler in a communication bridging mode;
the step of calling the corresponding script function according to the analysis code to obtain the execution result of the graphical code block corresponding to the script function comprises the following steps:
and calling the corresponding script function and the synchronous calling asynchronous script function according to the analysis code to obtain the sequential execution result of the plurality of graphical code blocks corresponding to the script function.
A3, the method as claimed in A1, characterized in that the method further comprises:
establishing a corresponding relation between a specified script event and a specified function of a specified programming language;
and when the specified script event is monitored to be triggered, calling a corresponding specified function of the specified programming language according to the corresponding relation and executing.
The method according to A4 and A3, wherein the calling a corresponding specified function of a specified programming language and executing according to the corresponding relationship includes:
the callsimiasync provided by the specified compiler calls the corresponding specified function of the specified programming language and executes it.
The method as claimed in A1, wherein the method further comprises:
judging whether an API function is called in the analysis code;
if the API function is judged to be the same, corresponding operation is carried out according to the type of the called API function.
The method of A6, as described in A5, wherein if the called API function is an API function encapsulated by a graphical code block corresponding to a graphical programming tool, performing corresponding operations according to the type of the called API function includes:
and acquiring a corresponding interactive interface according to the called API function.
The method of A7, as set forth in A5, wherein if the called API function is an API function of a third party, performing corresponding operations according to the type of the called API function includes:
sending a corresponding data acquisition request to a corresponding third-party server; and receiving corresponding data returned by the third-party server.
The method of A8, as described in A5, wherein if the called API function is a class library supported by other programming languages, performing corresponding operations according to the type of the called API function includes:
and acquiring corresponding objects in the class libraries supported by other programming languages according to the called API function.
A9 the method according to any one of A1 to A7,
the specified programming language comprises a Python language; c + + language; the Java language; a JavaScript language;
the graphical programming tool comprises a Scratch programming tool.
A10 the method of A9, wherein when the specified programming language is Python language, the specified compiler comprises a Skulpt compiler.
A11, the method as described in A1, wherein before said receiving input source code of a specified programming language, the method further comprises:
sending a loading request of a program editor based on a specified programming language to a server in response to a request for accessing a specified website;
and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
The embodiment of the invention also discloses B12 and a program editing device, which is characterized by comprising the following components:
a receiving unit adapted to receive an input source code of a designated programming language;
the analysis unit is suitable for responding to the execution request of the source code and analyzing the source code by using a specified compiler to obtain an analysis code;
the packaging unit is suitable for packaging each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler;
the execution unit is suitable for calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function;
and the display unit is suitable for displaying the execution result according to the graphical programming tool.
B13. The apparatus as in B12, further comprising:
the defining unit is suitable for defining synchronous calling asynchronous script functions by utilizing a specified compiler in a communication bridging mode;
and the execution unit is suitable for calling a corresponding script function and the synchronous calling asynchronous script function according to the analysis code to obtain a sequential execution result of a plurality of graphical code blocks corresponding to the script function.
B14. The apparatus as claimed in B12, further comprising:
the establishing unit is suitable for establishing a corresponding relation between a specified script event and a specified function of a specified programming language;
and the execution unit is suitable for calling a corresponding specified function of the specified programming language and executing the corresponding specified function according to the corresponding relation when the specified script event is monitored to be triggered.
B15. The device according to B14,
and the execution unit is suitable for calling a specified function of a corresponding specified programming language through Callsimasync provided by a specified compiler and executing the specified function.
B16. The apparatus as claimed in B12, wherein said apparatus further comprises:
the judging unit is suitable for judging whether the API function is called in the analysis code or not; if the API function is judged to be the same, corresponding operation is carried out according to the type of the called API function.
B17. The device according to B15,
and the judging unit is suitable for acquiring a corresponding interactive interface according to the called API function if the called API function is the API function encapsulated by the graphical code block corresponding to the graphical programming tool.
B18. The device according to B15,
the judging unit is suitable for sending a corresponding data acquisition request to a corresponding third-party server if the called API function is the API function of the third party; and receiving corresponding data returned by the third-party server.
B19. The device according to B15,
and the judging unit is suitable for acquiring corresponding objects in the class libraries supported by other programming languages according to the called API function if the called API function is the class library supported by other programming languages.
B20. The device according to any of B12-B19,
the specified programming language comprises a Python language; c + + language; java language; a JavaScript language;
the graphical programming tool comprises a Scratch programming tool.
The apparatus of B21, as set forth in B20, wherein the specified compiler comprises a Skulpt compiler when the specified programming language is Python language.
B22. The apparatus as claimed in B12, further comprising:
a loading unit adapted to send a loading request based on a program editor of a specified programming language to a server in response to a request for accessing a specified website before the input source code of the specified programming language is received; and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
The embodiment of the invention also discloses C23 and electronic equipment, which is characterized by comprising the following components:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method according to any one of A1 to a 11.
The embodiment of the invention also discloses D24 and a computer readable storage medium, which is characterized in that the computer readable storage medium stores one or more programs, and the one or more programs realize the method of any one of A1-A11 when being executed by a processor.

Claims (22)

1. A program editing method, the method comprising:
receiving input source code of a specified programming language;
responding to the execution request of the source code, and analyzing the source code by using a specified compiler to obtain an analysis code;
packaging each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler;
calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function;
displaying the execution result according to the graphical programming tool;
judging whether an API function is called in the analysis code;
if the API function is judged to be the same, corresponding operation is carried out according to the type of the called API function.
2. The method of claim 1, wherein the method further comprises:
defining synchronous calling asynchronous script functions by using a specified compiler in a communication bridging mode;
the step of calling the corresponding script function according to the analysis code to obtain the execution result of the graphical code block corresponding to the script function comprises the following steps:
and calling the corresponding script function and the synchronous calling asynchronous script function according to the analysis code to obtain the sequential execution result of the plurality of graphical code blocks corresponding to the script function.
3. The method of claim 1, wherein the method further comprises:
establishing a corresponding relation between a specified script event and a specified function of a specified programming language;
and when the specified script event is monitored to be triggered, calling the corresponding specified function of the specified programming language according to the corresponding relation and executing.
4. The method of claim 3, wherein said invoking a corresponding specified function of a specified programming language and executing according to the correspondence comprises:
the CallsimAsync provided by the specified compiler calls the corresponding specified function of the specified programming language and executes it.
5. The method of claim 1, wherein if the called API function is an API function encapsulated by a graphical code block corresponding to a graphical programming tool, performing a corresponding operation according to the type of the called API function comprises:
and acquiring a corresponding interactive interface according to the called API function.
6. The method of claim 1, wherein if the called API function is a third party API function, performing the corresponding operation according to the type of the called API function comprises:
sending a corresponding data acquisition request to a corresponding third-party server; and receiving corresponding data returned by the third-party server.
7. The method of claim 1, wherein if the called API function is a class library supported by other programming languages, performing corresponding operations according to the type of the called API function comprises:
and acquiring corresponding objects in the class libraries supported by other programming languages according to the called API function.
8. The method of any one of claims 1-6,
the specified programming language comprises a Python language; c + + language; java language; a JavaScript language;
the graphical programming tool comprises a Scratch programming tool.
9. The method of claim 8, wherein the specified compiler comprises a Skulpt compiler when the specified programming language is a Python language.
10. The method of claim 1, wherein prior to said receiving the input source code in the specified programming language, the method further comprises:
sending a loading request of a program editor based on a specified programming language to a server in response to a request for accessing a specified website;
and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
11. A program editing apparatus, characterized in that the apparatus comprises:
a receiving unit adapted to receive an input of a source code of a designated programming language;
the analysis unit is suitable for responding to the execution request of the source code and analyzing the source code by using a specified compiler to obtain an analysis code;
the packaging unit is suitable for packaging each graphical code block corresponding to the graphical programming tool into a script function supported by the compiler;
the execution unit is suitable for calling a corresponding script function according to the analysis code to obtain an execution result of the graphical code block corresponding to the script function;
the display unit is suitable for displaying the execution result according to the graphical programming tool;
the judging unit is suitable for judging whether the API function is called in the analysis code or not; if the API function is judged to be the same, corresponding operation is carried out according to the type of the called API function.
12. The apparatus of claim 11, wherein the apparatus further comprises:
the defining unit is suitable for defining synchronous calling asynchronous script functions by utilizing a specified compiler in a communication bridging mode;
and the execution unit is suitable for calling the corresponding script function and the synchronous calling asynchronous script function according to the analysis code to obtain the sequential execution result of the plurality of graphical code blocks corresponding to the script function.
13. The apparatus of claim 11, wherein the apparatus further comprises:
the establishing unit is suitable for establishing a corresponding relation between a specified script event and a specified function of a specified programming language;
and the execution unit is suitable for calling a corresponding specified function of the specified programming language and executing the corresponding specified function according to the corresponding relation when the specified script event is monitored to be triggered.
14. The apparatus of claim 13,
and the execution unit is suitable for calling a corresponding specified function of a specified programming language through CallsimaAsync provided by a specified compiler and executing the corresponding specified function.
15. The apparatus of claim 14,
and the judging unit is suitable for acquiring a corresponding interactive interface according to the called API function if the called API function is the API function encapsulated by the graphical code block corresponding to the graphical programming tool.
16. The apparatus of claim 14,
the judging unit is suitable for sending a corresponding data acquisition request to a corresponding third-party server if the called API function is the API function of the third party; and receiving corresponding data returned by the third-party server.
17. The apparatus of claim 14,
and the judging unit is suitable for acquiring corresponding objects in the class libraries supported by other programming languages according to the called API function if the called API function is the class library supported by other programming languages.
18. The apparatus of any one of claims 11-17,
the specified programming language comprises a Python language; c + + language; the Java language; a JavaScript language;
the graphical programming tool comprises a Scratch programming tool.
19. The apparatus of claim 18, wherein the specified compiler comprises a Skulpt compiler when the specified programming language is a Python language.
20. The apparatus of claim 11, wherein the apparatus further comprises:
a loading unit adapted to send a loading request based on a program editor of a specified programming language to a server in response to a request for accessing a specified website before the input source code of the specified programming language is received; and receiving loading information of the program editor based on the specified programming language returned by the server, and loading the program editor based on the specified programming language according to the received loading information.
21. An electronic device, characterized in that the electronic device comprises:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of claims 1 to 10.
22. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any one of claims 1 to 10.
CN201910272610.XA 2019-04-04 2019-04-04 Program editing method and device Active CN110134386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910272610.XA CN110134386B (en) 2019-04-04 2019-04-04 Program editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910272610.XA CN110134386B (en) 2019-04-04 2019-04-04 Program editing method and device

Publications (2)

Publication Number Publication Date
CN110134386A CN110134386A (en) 2019-08-16
CN110134386B true CN110134386B (en) 2023-04-18

Family

ID=67569444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910272610.XA Active CN110134386B (en) 2019-04-04 2019-04-04 Program editing method and device

Country Status (1)

Country Link
CN (1) CN110134386B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597501B (en) * 2019-08-09 2022-10-18 苏宁金融科技(南京)有限公司 Natural language programming method and device based on strong static scripting language
CN110647324B (en) * 2019-09-18 2023-05-16 编缘(杭州)教育科技有限公司 Python and Scratch interactive programming method and electronic device
CN111124383A (en) * 2019-12-20 2020-05-08 阿哈王国(武汉)教育科技有限公司 Method for online project creation by using Python language
CN111061462A (en) * 2019-12-20 2020-04-24 阿哈王国(武汉)教育科技有限公司 Method for writing war chess AI by using Python language
CN111475155B (en) * 2020-03-26 2023-05-09 哈尔滨工业大学 Graphical programming method for robot interaction based on image blocks
CN111586490A (en) * 2020-04-28 2020-08-25 上海商汤临港智能科技有限公司 Multimedia interaction method, device, equipment and storage medium
CN111857693B (en) * 2020-05-29 2023-12-26 北京编程猫科技有限公司 Method and device for calling third party function based on imaging programming
CN111813411A (en) * 2020-06-13 2020-10-23 立乐教育科技(上海)有限公司 Python script language-based instruction method
CN112667974A (en) * 2020-12-15 2021-04-16 深圳市优必选科技股份有限公司 Graphical programming code protection method and device and terminal equipment
CN112328238B (en) * 2021-01-05 2021-03-30 深圳点猫科技有限公司 Building block code execution control method, system and storage medium
CN116400927B (en) * 2023-04-18 2024-01-26 北京思明启创科技有限公司 Code block translation method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461575A (en) * 2014-12-26 2015-03-25 北京华电万通科技有限公司 Device and method for JavaScript native interface calling conducted by crossing mobile operating system platform

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060225053A1 (en) * 2004-10-21 2006-10-05 Microsoft Corporation Programming language improvements
US7975233B2 (en) * 2006-07-24 2011-07-05 National Instruments Corporation Automatic conversion of a textual language into a graphical program representation
CN102999370A (en) * 2011-09-16 2013-03-27 腾讯科技(深圳)有限公司 Method and system for executing script
CN103023765B (en) * 2012-12-04 2015-09-09 杭州迪普科技有限公司 A kind of message processing method based on script and device
US20160246622A1 (en) * 2015-02-23 2016-08-25 Karlen Simonyan Method and system for implementing invocation stubs for the application programming interfaces embedding with function overload resolution for dynamic computer programming languages
CN106469051B (en) * 2015-08-19 2020-03-27 阿里巴巴集团控股有限公司 Object delivery method and device
US10684830B2 (en) * 2017-04-03 2020-06-16 Innovation First, Inc. Mixed mode programming
CN109254787A (en) * 2018-07-18 2019-01-22 东软集团股份有限公司 Service logic variation, device, storage medium and electronic equipment
CN109240679A (en) * 2018-07-24 2019-01-18 阿里巴巴集团控股有限公司 The graphic method and device of script file

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461575A (en) * 2014-12-26 2015-03-25 北京华电万通科技有限公司 Device and method for JavaScript native interface calling conducted by crossing mobile operating system platform

Also Published As

Publication number Publication date
CN110134386A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110134386B (en) Program editing method and device
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
US20130298110A1 (en) Software Visualization Using Code Coverage Information
CN107451162A (en) Network resource accession equipment, mixing apparatus and method
CN107122301A (en) Interface detection method and device
CN107391219B (en) Function Compilation Method and device
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN111008132B (en) Application debugging method and device for Android system, computer equipment and storage medium
CN108132809A (en) Method, apparatus, terminal and the storage medium of loading
CN111158690A (en) Desktop application framework, construction method, desktop application running method and storage medium
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
CN108153533B (en) Method and device for making installation program, and method and device for installing program
CN110020370B (en) Method and device for realizing animation in client application and framework of animation script
CN111427782A (en) Operation method, device, equipment and storage medium of android dynamic link library
CN114895935A (en) Method and device for flashing vehicle ECU, electronic equipment and storage medium
CN110990001A (en) IVR (Interactive Voice response) process execution method and device
CN111625291A (en) Automatic iteration method and device of data processing model and electronic equipment
CN108037914B (en) Method and device for developing android native system by combining js
CN110717992A (en) Method, device, computer system and readable storage medium for scheduling model
CN111198731A (en) Interface implementation method and device, electronic equipment and storage medium
CN113961279A (en) Page rendering method, device, server and storage medium
CN112346761A (en) Front-end resource online method, equipment, system and storage medium
CN112068895A (en) Code configuration method and device, video playing equipment and storage medium
CN110347446A (en) A kind of page resource loading method and system
CN112068814A (en) Method, device, system and medium for generating executable file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant