发明名称 SHARING OF FIRST CLASS OBJECTS ACROSS MULTIPLE INTERPRETED PROGRAMMING LANGUAGES
摘要 Systems and methods are disclosed for enabling users to write scripting code in a first scripting language, and then use a second scripting language to call language constructs written in that first scripting language. Functions, Class Definitions, Class Instances, Modules and other language constructs are treated as first-class objects that can be shared across the different scripting languages. The techniques disclosed herein are also applicable to domain-specific languages. As part of the methodology, a respective underlying representation of each of these object types is designed as an interface and then that interface is implemented in each scripting language. In addition, code is written in each scripting language implementation to allow the latter to use the interface to represent a Function, Class, or other language construct.
申请公布号 US2014317642(A1) 申请公布日期 2014.10.23
申请号 US201414258975 申请日期 2014.04.22
申请人 The Boeing Company 发明人 Thunemann Paul Z.;Ray Stephen L.
分类号 G06F9/44;G06F9/54 主分类号 G06F9/44
代理机构 代理人
主权项 1. A method of sharing language constructs among different scripting languages, the method comprising: returning a result from a first instance of a first language construct written in a first scripting language in response to a call to the first language construct by a second language construct written in a second scripting language, the call redirected to a first core adapter by way of a first instance of a first core interface and a first instance of a first language adapter; redirecting the returned result to a second instance of the first core interface by way of a first instance of a second language adapter configured to convert an object written in the first scripting language into an object written in a language of a core application programming interface; and redirecting the returned result received by the second instance of the first core interface to the second language construct written in the second scripting language by way of a first instance of a second core adapter configured to convert an object written in the language of the core application programming interface into an object written in the second scripting language.
地址 Chicago IL US