.. _RefRuleClasses:

Rules
============================================================================

This section describes the following classes:

 * :class:`dragonfly.grammar.rule_base.Rule` -- the base rule class
 * :class:`dragonfly.grammar.rule_basic.BasicRule` -- a rule class for
   defining voice commands using elements directly.
 * :class:`dragonfly.grammar.rule_compound.CompoundRule` -- a rule class
   of which the root element is a
   :class:`dragonfly.grammar.element_compound.Compound` element.
 * :class:`dragonfly.grammar.rule_mapping.MappingRule` -- a rule class for
   creating multiple spoken-form -> semantic value voice-commands.


.. automodule:: dragonfly.grammar.rule_base
   :members:

.. automodule:: dragonfly.grammar.rule_basic
   :members:

.. automodule:: dragonfly.grammar.rule_compound
   :members:

.. automodule:: dragonfly.grammar.rule_mapping
   :members:
