Execution of Program Code Having Language-Level Integration of Program Models
First Claim
1. A computer-implemented method for executing program code, the method comprising:
- receiving a source code file that contains computer code in a host language integrated with inset computer code in a domain specific language, wherein the domain specific language is different from the host language;
reading the source code file;
responsive to reading computer code in the host language, invoking a set of computing instructions indicated by the computer code in accordance with the host language; and
responsive to reading inset computer code in the domain specific language, invoking a set of computing instructions indicated by the inset code in accordance with the domain specific language.
2 Assignments
0 Petitions
Accused Products
Abstract
To enable language-level integration of multiple programming languages into a single programming framework, one or more domain specific languages (DSLs) are specified as incremental extensions to a host programming language. An application created in this framework may include program code written in the host language as well as DSL inset code that is written in any of the DSLs. The extensions to the host language are described in DSL specifications, which define how the DSL inset code is processed. At runtime, DSL inset code in the source code is detected and passed to a DSL inset processor for execution according to an appropriate DSL specification, whereas source code in the host language is executed by a host language processor.
55 Citations
18 Claims
-
1. A computer-implemented method for executing program code, the method comprising:
-
receiving a source code file that contains computer code in a host language integrated with inset computer code in a domain specific language, wherein the domain specific language is different from the host language; reading the source code file; responsive to reading computer code in the host language, invoking a set of computing instructions indicated by the computer code in accordance with the host language; and responsive to reading inset computer code in the domain specific language, invoking a set of computing instructions indicated by the inset code in accordance with the domain specific language. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for executing program code, the computer program product comprising a computer-readable storage medium containing computer program code that comprises:
-
a host language processor configured to execute program code in a host language; a domain specific language inset processor configured to execute program code in a domain specific language, wherein the domain specific language is different from the host language; and a lexical analyzer configured to receive a source code file that contains computer code in a host language integrated with inset computer code in a domain specific language, the lexical analyzer further configured to pass program code in the host language to the host language processor and pass inset code in the domain specific language to the domain specific language inset processor. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program product for executing program code, the computer program product comprising a computer-readable storage medium containing computer program code for:
-
receiving a source code file that contains computer code in a host language integrated with inset computer code in a domain specific language, wherein the domain specific language is different from the host language; reading the source code file; responsive to reading computer code in the host language, invoking a set of computing instructions indicated by the computer code in accordance with the host language; and responsive to reading inset computer code in the domain specific language, invoking a set of computing instructions indicated by the inset code in accordance with the domain specific language. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification