Method and system for an extensible macro language
First Claim
1. A method for providing an extensible macro language comprising:
- maintaining, in a repository, a predefined macro language comprising a plurality of keywords and a plurality of associated commands for execution;
using a parser to parse a macro language expression to identify a new keyword in the macro language expression that is not within the plurality of keywords in the predefined macro language;
using a macro handler comprising a macro processor to retrieve, from a registry of keywords and associated executable codes, an executable code associated with the new keyword identified in the macro language expression, the executable code corresponding to a procedure that is not performed by the execution of the predefined macro language alone; and
using the macro handler to execute the executable code retrieved from the registry to run the extended macro command associated with the new keyword in the macro language expression without recompiling the macro language, the executable code associated with the new keyword not included in the predefined macro language and resulting in the performance of a procedure that is not performed by execution of the predefined macro language alone.
3 Assignments
0 Petitions
Accused Products
Abstract
A method and system for an extensible macro language is provided. The system for providing the extensible macro language includes a parser and a macro handler for processing macro commands not previously defined in the macro language. The parser analyzes keywords in a macro language expression and recognizes one or more keywords representing macro commands that were not previously defined in the macro language. The macro handler receives the keywords in the macro expression and retrieves from a registry of keywords, an executable code or procedure associated with the keyword. The executable code is run to process the macro command represented by the keyword. The template language registry may be augmented to include any keywords and associated codes for extending the macro language.
-
Citations
14 Claims
-
1. A method for providing an extensible macro language comprising:
-
maintaining, in a repository, a predefined macro language comprising a plurality of keywords and a plurality of associated commands for execution; using a parser to parse a macro language expression to identify a new keyword in the macro language expression that is not within the plurality of keywords in the predefined macro language; using a macro handler comprising a macro processor to retrieve, from a registry of keywords and associated executable codes, an executable code associated with the new keyword identified in the macro language expression, the executable code corresponding to a procedure that is not performed by the execution of the predefined macro language alone; and using the macro handler to execute the executable code retrieved from the registry to run the extended macro command associated with the new keyword in the macro language expression without recompiling the macro language, the executable code associated with the new keyword not included in the predefined macro language and resulting in the performance of a procedure that is not performed by execution of the predefined macro language alone. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system for providing an extensible macro language, comprising:
-
a macro handler comprising a macro processor operable to maintain, in a repository, a predefined macro language comprising a plurality of keywords and a plurality of associated commands for execution; a parser operable to parse a macro language expression to identify a new keyword in the macro language expression that is not within the plurality of keywords in the predefined macro language; and a registry of keywords and associated executable codes, including one or more keywords and one or more executable codes that are not included in the predefined macro language, each keyword being associated with a respective one of the executable codes, each executable code corresponding to a procedure that is not performed by the execution of the predefined macro language alone, wherein the macro handler is further operable to receive the new keyword from the parser, retrieve, from the registry of keywords and associated executable codes, the executable code associated with the new keyword identified within the macro language expression, and execute the retrieved executable code to run the extended macro command associated with the new keyword without recompiling the macro language, the executable code associated with the new keyword not included in the predefined macro language and resulting in the performance of a procedure that is not performed by execution of the predefined macro language alone. - View Dependent Claims (10, 11, 12, 13, 14)
-
Specification