Module cfg::rule

source ·
Expand description

This module defines grammar rules. Each rule in a context-free grammar consists of a single symbol on its left-hand side and an array of symbols on its right-hand side. In this library, each rule carries additional value called “history.”

Modules

  • Grammar rules can be built with the builder pattern.

Structs

  • Typical grammar rule representation.
  • References rule’s components.

Traits