# <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.

© Copyright 2013-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm