Lably
Skip to content

Regular tree grammar

Formal grammar

  • 4 min read
  • 6 chapters

Explore on Lably

ToursExplore Lably’s 3D tours

Definition

A regular tree grammar G is defined by the tuple G = (N, Σ, Z, P), where:

  • N is a finite set of nonterminals,
  • Σ is a ranked alphabet (i.e., an alphabet whose symbols have an associated arity) disjoint from N,
  • Z is the starting nonterminal, with Z ∈ N, and
  • P is a finite set of productions of the form A → t, with A ∈ N, and t ∈ TΣ(N), where TΣ(N) is the associated term algebra, i.e. the set of all trees composed from symbols in Σ ∪ N according to their arities, where nonterminals are considered nullary.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication