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

Scripting language execution method and device

A technology of a scripting language and an execution method, applied in the computer field, can solve the problems of limited execution efficiency of scripting language, virtual machine execution efficiency, low script execution efficiency, affecting script running performance, etc., so as to reduce coding errors, reduce dependencies, and improve execution. The effect of efficiency

Inactive Publication Date: 2016-07-20
YGSOFT INC
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The execution process of the scripting language depends on the script interpreter. The script interpreter is composed of a lexical analyzer, a syntax analyzer, and an algorithm set. The algorithm set is a part of the scripting language virtual machine and has certain calculation rules built in. The set of language operators analyzed by the syntax analyzer and the final operation result of the script language are obtained. The execution process of a typical script language is as follows: first, the script is analyzed by the lexical analyzer and the syntax analyzer according to predetermined rules, and then the analyzed operator set is Passed to the virtual machine, the virtual machine interprets the operation and obtains the execution result. This typical execution mode causes the script language to go through the process of script parsing and operator parsing during operation, resulting in lower script execution efficiency than compiled languages.
In addition, the execution efficiency of the scripting language is also limited by the execution efficiency of the virtual machine. An inefficient virtual machine or internal algorithm will seriously affect the script running performance

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
  • Scripting language execution method and device
  • Scripting language execution method and device
  • Scripting language execution method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0040] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0041] Such as figure 1 As shown, a scripting language execution method provided by an embodiment of the present invention includes the following steps:

[0042] S101, analyze and interpret the code of the script language, and generate a subset of operations;

[0043] S102...

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 provides a scripting language execution method, which comprises the following steps: (1) analyzing and explaining the code of a scripting language to generate an operation subset; (2) generating the operation subset into an operable code, and storing the code into a memory; and (3) executing the operable code. The invention also correspondingly provides a scripting language execution device. The scripting language execution method and device carries out a code curing operation on grammatical analysis and operation subset explanation exaction processes in an execution process of the scripting language through a precompiled way, so that the scripting language reduces the explanation exaction process in the execution process, meanwhile, dependence on a virtual machine in the execution process of the scripting language is lowered, and the execution efficiency of the scripting language is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a scripting language execution method and device. Background technique [0002] The execution process of the scripting language depends on the script interpreter. The script interpreter is composed of a lexical analyzer, a syntax analyzer, and an algorithm set. The algorithm set is a part of the scripting language virtual machine and has certain calculation rules built in. The set of language operators analyzed by the syntax analyzer and the final operation result of the script language are obtained. The execution process of a typical script language is as follows: first, the script is analyzed by the lexical analyzer and the syntax analyzer according to predetermined rules, and then the analyzed operator set is Passed to the virtual machine, the virtual machine interprets the operation and obtains the execution result. This typical execution mode causes the script la...

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): G06F9/44G06F9/455
Inventor 谢小明段武举
Owner YGSOFT INC
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