Configurable grammar templates
First Claim
Patent Images
1. A method comprising:
- receiving a grammar that comprises a reference to a template and a parameter value used by the template; and
compiling the grammar by utilizing the template and the parameter value to determine what grammar elements to include in a compiled grammar.
2 Assignments
0 Petitions
Accused Products
Abstract
To provide application developers with the ability to easily form customized grammars, grammar extensions are provided that allow application developers to selectively include portions of grammar templates and to easily combine grammar elements to form new grammar structures.
11 Citations
20 Claims
-
1. A method comprising:
-
receiving a grammar that comprises a reference to a template and a parameter value used by the template; and
compiling the grammar by utilizing the template and the parameter value to determine what grammar elements to include in a compiled grammar. - View Dependent Claims (2, 3, 4, 6, 7, 8, 9)
-
-
5. The method of claim 5 wherein compiling the grammar comprises inserting a first set of grammar elements from the template based on the reference to the template and the parameter value and inserting a second set of grammar elements from the template based on the second reference to the template and the second parameter value, the second set of grammar elements being different from the first set of grammar elements.
-
10. A computer-implemented method comprising:
-
locating a grammar operator in a grammar that indicates that two items in the grammar are to be combined;
locating the two items in the grammar; and
combining the two items in the grammar to form an output item for a compiled grammar. - View Dependent Claims (11, 12, 13, 14)
-
- 15. A method comprising including a template reference in a first form of a grammar, the template reference identifying a template and a value for a parameter used in the template to identify grammar elements to include in a second form of the grammar.
Specification