PROGRAMMING LANGUAGE WITH EXTENSIBLE SYNTAX
First Claim
1. A method for generating at least one programming module with a declarative programming language, including:
- receiving, in memory of a computing device, textual input of a declarative source code including receiving, within the same program, native textual input specified according to a native syntax of the declarative programming language and foreign textual input specified according to a different syntax than the native syntax;
receiving, within the source code, a definition of the different syntax; and
compiling the source code including extending the rules of the native syntax with rules associated with the definition of the different syntax to form a set of extended syntax rules.
2 Assignments
0 Petitions
Accused Products
Abstract
The subject disclosure relates to an extensible syntax for a scripting language that allows data intensive applications to be written in a compact, human friendly, textual format, and also according to self-defined syntax within the data intensive applications so that a single compilation unit of a program can support multiple syntaxes. An extensible syntax is provided for M that allows alternate syntaxes to be defined in line and then used in the program so as to accommodate user-defined syntaxes and other pre-existing domain specific languages. In one embodiment, the alternate syntaxes can be defined at pre-designated functional points in the program.
66 Citations
20 Claims
-
1. A method for generating at least one programming module with a declarative programming language, including:
-
receiving, in memory of a computing device, textual input of a declarative source code including receiving, within the same program, native textual input specified according to a native syntax of the declarative programming language and foreign textual input specified according to a different syntax than the native syntax; receiving, within the source code, a definition of the different syntax; and compiling the source code including extending the rules of the native syntax with rules associated with the definition of the different syntax to form a set of extended syntax rules. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer program product generated based on computer programming constructs of a declarative programming language, the computer program product generated from a method including:
-
receiving textual input of a declarative source code including, within the same data stream representing the source code, first textual input specified according to a first syntax of the declarative programming language, at least one definition of at least one second syntax different from the first syntax, and second textual input specified according to the at least one second syntax; and compiling the textual input of the data stream to form the computer program product. - View Dependent Claims (14, 15, 16, 17)
-
-
18. A compiler comprising,
an interface for receiving textual input of a declarative source code including, within the same compilation unit, first textual input specified according to a native syntax of the declarative programming language, second textual input specified according to at least one syntax, each different from the native syntax and at least one definition of the at least one syntax located at permissible pre-determined positions within the source code; - and
a parser that first parses over the first textual input to form a main tree structure and identifies the at least one definition and corresponding second textual input, and afterwards, parses over the second textual input based on the at least one definition and merges output of the parsing of the second textual input into the main tree structure. - View Dependent Claims (19, 20)
- and
Specification