Next:
Automata
Up:
Grammar
Previous:
Grammar
Applying production rules:
: If we have
and we also have rule
, then we have
, by replacing
by
.
: If
, we say that
deriving
and write it as
Here
indicates that an unspecified number of steps can be taken to derive
from
.
Let
be a grammar. Then the set
is the language generated by
.
Let
denote the number of a's in the string
.
Two grammars are
equivalent
if they generate the same language.
xiangyang li 2000-09-06