![]() You can have as many terms defined as you want on separate lines following the above structure, and include fairly complex grammar definitions.Note how each is separated by a pipe character. public declares that it is a public rule, the string in angle brackets defines the recognized name for this term ( color), and the list of items that follow the equals sign are the alternative values that will be recognized and accepted as appropriate values for the term. The second line indicates a type of term that we want to recognize.The first line - #JSGF V1.0 - states the format and version used.The lines are separated by semi-colons, just like in JavaScript.However, for now let's just run through it quickly: ![]() The grammar format used is JSpeech Grammar Format ( JSGF) - you can find a lot more about it at the previous link to its spec. ![]() Var colors = var grammar = '#JSGF V1.0 grammar colors public = ' + colors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |