Method and apparatus for interfacing a javascript interpreter with library of host objects implemented in java

   
   

A JavaScript interpreter may be interfaced with a JavaScript library of host objects implemented in Java. A JavaScript program may be accessed and parsed, an intermediate representation of the program may be generated, and the intermediate representation may be executed by interfacing with the library of host objects. In one embodiment, the JavaScript program is embedded in HTML documents in a Web browser. The browser is programmed to intercept the JavaScript code and pass execution control to an interpreter engine implemented in Java. The interpreter engine may access the program's library of host objects through an interface to the library and execute the intermediate representation to produce the desired results as programmed in the original JavaScript source program. The implementation of the interface enables the implementation of the interpreter engine to be independent from the implementation of the library of host objects and independent from the implementation of the browser.

Un interprète de Javascript peut être connecté avec une bibliothèque de Javascript des objets de centre serveur mis en application dans Java. Un programme de Javascript peut être consulté et analysé, une représentation intermédiaire du programme peut être produite, et la représentation intermédiaire peut être exécutée en se connectant par interface à la bibliothèque des objets de centre serveur. Dans une incorporation, le programme de Javascript est inclus dans des documents de HTML dans un navigateur de Web. Le navigateur est programmé arrêter le code de Javascript et passer la main d'exécution à un moteur d'interprète mis en application dans Java. Le moteur d'interprète peut accéder à la bibliothèque de programmes des objets de centre serveur par une interface à la bibliothèque et exécuter la représentation intermédiaire pour produire les résultats désirés comme programmés dans le programme source original de Javascript. L'exécution de l'interface permet à l'exécution du moteur d'interprète d'être indépendante de l'exécution de la bibliothèque des objets de centre serveur et du indépendant de l'exécution du navigateur.

 
Web www.patentalert.com

< Systems and methods for performing clock gating checks

< Mapping tool graphical user interface

> Virtual machine with reinitialization

> Thermal conditioning for integrated circuit testing

~ 00144