Patent ID: 8782673
Filing Date: 2014-07-15
Classification: G06F

Abstract:
1. A method of sharing language constructs among different scripting languages comprising: defining a core application programming interface which is language-neutral relative to a plurality of scripting languages, said core application programming interface comprising a respective core interface for each of a plurality of types of language constructs; defining a respective language adapter and a respective core adapter for respective types of a plurality of types of language constructs for each of a plurality of scripting languages, wherein said respective language adapter converts an object written in a respective scripting language into an object written in the language of the core application programming interface, and said respective core adapter converts an object written in the language of the core application programming interface into an object written in the respective scripting language; calling a first language construct of a first type written in a first scripting language, the call being made by a language construct of said first type written in a second scripting language; creating or retrieving a first instance of a first language adapter that can convert an object written in said second scripting language into an object written in the language of the core application programming interface; creating or retrieving a first instance of a first core interface that handles language constructs of said first type; redirecting the call to said first instance of said first core interface by way of said first instance of said first language adapter; creating or retrieving a first instance of a first core adapter that can convert an object written in the language of the core application programming interface into an object written in said first scripting language; redirecting the call received by said first instance of said first core interface to said first language construct of said first type written in said first scripting language by way of said first instance of said first core adapter; creating a first instance of said first language construct of said first type written in said first scripting language in response to the call; returning a result of said first instance of said first language construct of said first type written in said first scripting language; creating or retrieving a first instance of a second language adapter that can convert an object written in said first scripting language into an object written in the language of the core application programming interface; creating or retrieving a second instance of said first core interface; redirecting the returned result to said second instance of said first core interface by way of said first instance of said second language adapter; creating or retrieving a first instance of a second core adapter that can convert an object written in the language of the core application programming interface into an object written in said second scripting language; and redirecting the returned result received by said second instance of said first core interface to said first language construct of said first type written in said second scripting language by way of said first instance of said second core adapter.