发明名称 Hostable compiler utilizing type information from a host application
摘要 A hostable compiler interacts with a host application to enable the host application to execute program code supported by the hostable compiler. The host application and the hostable compiler exchange data through an interface that allows the hostable compiler to receive type information pertaining to data elements used in applications executing within the host application process. This type information may then be used by the hostable compiler in the compilation of source code to infer a type for data elements used in the source code that are not declared yet associated with a value of an expression used in an application executed within the host application process.
申请公布号 US9542168(B2) 申请公布日期 2017.01.10
申请号 US201113293150 申请日期 2011.11.10
申请人 MICROSOFT TECHNOLOGY LICENSING LLC 发明人 Pamer Joseph
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人 Sullivan Kevin;Drakos Kate;Minhas Micky
主权项 1. A computer-implemented method, comprising: obtaining a first type, the first type associated with a value of an expression used in a first source code hosted by a host application; inferring a second type for a value of an expression used in a second source code based on the first type, the value of the expression used in the second source code not associated with a type, the second source code hosted by the host application, the first source code written in a dynamic type programming language, the second source code written in a strongly typed programming language; and compiling the second source code using at least one of the first type, type information from source code executed in the host application and type information from external references, for the value of the expression used in the second source code.
地址 Redmond WA US