发明名称 Javascript interpreter engine written in Java
摘要 A method and apparatus for interpreting and executing a program may include accessing a program in memory, parsing the program, generating an intermediate representation equivalent of the program, and executing the intermediate representation by accessing the program's library of host objects through an interface to the library. The program may be a JavaScript program embedded in HTML documents in a browser. The Web browser is programmed to intercept the JavaScript code and pass execution control over the program to the interpreter engine developed in Java. The parsing component of the engine validates the JavaScript instructions. The validated instructions are converted by the code generator component of the engine into an intermediate representation equivalent in Java code. The interpreter engine accesses the program's library of host objects through an interface to the library and executes the intermediate representation to produce the desired results as programmed in the original JavaScript source program.
申请公布号 US6898786(B1) 申请公布日期 2005.05.24
申请号 US20000714049 申请日期 2000.11.15
申请人 SUN MICROSYSTEMS, INC. 发明人 SOKOLOV STEPHAN B.
分类号 G06F9/44;G06F9/45;(IPC1-7):G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址