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
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2016-07-20
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
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...
Examples
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...