Font Size: a A A

Research And Development Of A Lightweight Scripting Engine

Posted on:2012-11-14Degree:MasterType:Thesis
Country:ChinaCandidate:S B FuFull Text:PDF
GTID:2218330368458689Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Along with the rapid development of script technique, scripting support for application is an effective method to make the application more extendable and more customizable. Scripting engine is a program to interpret and run scripting programs, and technical implementation of scripting support for application. In the field of modern industry, nevertheless, there are hardly any existing scripting engines to meet the requirement of the applications, since the scripting languages of some existing scripting engines are too difficult to get start, and some scripting engines consume too much time and memories to meet the performance requirements of medium-small applications.To solute these problems, this paper designes and developes a lightweight scripting engine which is constituted of a front-end compiler and a back-end virtual machine. The front-end compiler, which is implemented by writing by hand or generating by a parser generator ANTLR, compiles the scripting source program to byte code instructions. The back-end virtual machine is a stack machine which executes byte code instructions to understand the meaning of scripts. Furthermore, this scripting engine contains a set of C++ interaction interfaces with which it can be embedded into C++ applications, it makes scripting language to invoke functions and objects registered in the applications, as a result, secondary development of the applications implemented by user. The scripting language is interpreted by this scripting engine named Vblet. Vblet is a subset of Visual Basic which is popular to casual programmers; it removes parts of features of Visual Basic and extends some grammatical features to make it more flexible and more interactive. Finally, an integrated development environment of this scripting engine is implemented.After testing of the program, it is concluded that this scripting engine can interpret Vblet script correctly and more highly in performance, so it can extend and customize applications by embedding.
Keywords/Search Tags:scripting engine, virtual machine, Vblet
PDF Full Text Request
Related items