languages

Definition

Grammar

A grammar is a 4-tuple:

where:

  • is the finite set of non-terminal symbols
  • is the finite set of terminal symbol ()
  • are the product rules
  • is the start symbol

Denote:

  • instead of
  • instead of

Further, is also called unconstrained grammar or type- grammar.

Sentential Form

Definition

Sentential Form

Given a grammar $G = \langle N, T, P, S \rangle$$

If holds for a word , then is called a sentential form.

Link to original

Generated Language

Definition

Generated Language

The language generated by a grammar , denoted is given by:

Link to original

Equivalence

Two grammars are called equivalent iff their generated languages match: