Def: Let be a grammar, and let be a sentential form. Then is called a phrase of the sentential form for some nonterminal if $$S\stackrel{*}{\Rightarrow} \phi_1 A \phi_2 \qquad \text{and}\qquad A \stackrel{+}{\Rightarrow}\beta.$$Furthermore, is called a simple phrase if and .
Def: The handle of the sentential form is the leftmost simple phrase.
Def: A sentence generated by a grammar is ambiguous if there exisrt more than one syntax tree for it. A grammar is ambiguous if it generates at least one ambiguous sentence; otherwise it is unambiguous. There are certain languages, however, for which no ambiguous grammars can be found. Such languages are said to be inherentle ambiguous.
In addition to the relation , which was defined in the connection with a grammar, we can also define the following leftmost canonical direct derivation: $$\phi_1 A \phi_2 \underset{L}{\Rightarrow} \phi_1 \beta \phi_2$$if is a rule of the grammar and