- CFG
: non-terminals, terminals, productions and
start symbol (
). Let
be the set of all
symbols. The productions relate nonterminals to strings of terminals
and non-terminals:
.
- Derivation is defined as a relation
The transitive closure of
if
.
-

- CFL

- PDA
:
states, symbols, stack symbols, transitions (
), initial state (
), initial
stack (
), final states (
).
- Deterministic:

- Instantaneous description (ID
)
- Movement:
if
where
. The transitive closure of
is
.
-
![\(L(M) = \{{w \in T^* \mid (q_0,w,Z_0) \stackrel{\raisebox{-1.0ex}[0pt][0pt]{\tiny {\mbox{{$\,$}
*{}}}}}{\vdash}
(p,\epsilon,\epsilon), p \in F}\} \)](week2-img22.gif)
- CFL =

- But nondeterministic PDAs are impractical, so
we want to use DPDAs which are not equivalent in power to NDPDAs.
- DCFL =
.
What does a DCFL look like ?
- Bottom-up left-to-right parsing:
Rightmost derivation, in reverse.
- Rightmost derivation:

- Shift-reduce parsing:
A special kind of DPDA (but equivalent in power).
John Tang Boyland
2004-09-09