Phrase-Structure GrammarsPhrase-Structure Grammars

Definition:

A phrase-structure grammar $\QTR{Large}{G}$ is defined as an ordered quadruple of the form

MATH

where:

We assume that MATH MATH , but MATH .

Productions have the form MATH where ,

  1. MATH, written MATH

  2. MATH

    and such that

  3. There is at least one member of $\QTR{Large}{R}$ of the form MATH

  4. Let, MATH , then $\QTR{Large}{v}$ must contain at least one member of $\QTR{Large}{V}$.

  5. At least one member MATH must have MATH

As usual, The Language Generated by $\QTR{Large}{G}$, MATH, is the set of strings MATH such that there is a derivation MATH

___________________________________________________________________________

A Natural Example of a Non-Context Free Grammar.

or

An Example of a Non-Context Free Grammar

$\vspace{1pt}$

MATH MATH MATH
MATH MATH MATH
MATH MATH MATH
MATH MATH MATH
MATH MATH the
MATH MATH man$\QTR{Large}{\ |\ }$book
MATH MATH men $\QTR{Large}{\ |\ }$books
MATH MATH reads
MATH MATH read

Productions:

the man reads the book

the men read the book

the man reads the books

the men read the books

__________________________________________________________

The Chomsky Hierarchy: