next up previous contents
Next: Early's Algorithm Up: Early's Parser Previous: Early's Parser   Contents

Early's Items

This is achieved by enhancing the concept of an item. In Early's parser an item has the form:

\begin{displaymath}i:\;\; {}_kX\; \rightarrow\;
\alpha{}_\triangle \beta\end{displaymath}

where $i$ and $k$ are numbers, and $X\rightarrow \alpha\beta$ is a production rule. An item of this form is interpreted as meaning:

If the start symbol is $S$, we can represent this situation as:


\begin{displaymath}
\overbrace{
x_0 \ldots
\overbrace{
\overbrace{x_k \ldots x_{...
...ngle\;
\overbrace{x_i \ldots}^{\beta}
}^{X}
\ldots x_{n-1}
}^S
\end{displaymath}




Thus at any stage during the parse we always have that $0 \leq k \leq i \leq n$ where $n$ is the length of the input string.


We will need to define a version of the closure operation for these items:


next up previous contents
Next: Early's Algorithm Up: Early's Parser Previous: Early's Parser   Contents
James Power 2002-11-29