<grammar>

Element: grammar

Child Elements: <extern>, <entity>

Description: Defines a grammar, which is a collection of entities. You use entities for matching.

Example: <grammar name="grammar1" case="inherited" extend="disallow" debug="inherited">

Attribute

Value

Default

Description

name

<grammar name>

 

The name of the grammar. A value is required.

case

sensitive

insensitive

inherited

inherited

Determines whether a match is case sensitive. The value inherited accepts the case matching mode of the <grammars> parent.
extend

append

replace

disallow

disallow

The mode to use for updating a grammar. Set this option to append to add the new entities to the existing grammar definition. Set it to replace to ignore the existing definition and use the new one. Set extend to disallow to prevent the new definition adding to or replacing values if there is already a grammar with the same name.

debug

true

false

inherited

inherited

Displays verbose information for the dictionary element during compilation. The value inherited accepts the debug mode of the grammars parent.