The present invention provides a method and apparatus that utilize a
context-free grammar written in a markup language format. The markup
language format provides a hierarchical format in which grammar
structures are delimited within and defined by a set of tags. The markup
language format also provides grammar switch tags that indicate a
transitions from the context-free grammar to a dictation grammar or a
text buffer grammar. In addition, the markup language format provides for
the designation of code to be executed when particular grammar structures
are recognized from a speech signal.