rule

<rule>  

It defines a grammar rule by associating a rule expansion with an identifier. It has two attributes namely id and scope.

 Attributes:

id

A unique identifier which is to identify this rule and provide reference to it from grammar elements or ruleref.

scope

Defines the scope of rule. It can take two values namely ‘public’ or ‘private’. If private the rule is available only within the grammar element in which it is defined and when set to ‘public’ can be imported and used by rules defined elsewhere.

parent

grammar

children

 ,item ,one-of ,ruleref ,tag ,token