 
 
 
 
 
 
 
  
 Parsers
 Parsers
In order to introduce lookahead as early as possible into the parser construction, we define
the following: 
An  item is an
 item is an  item plus some lookahead symbols.
 item plus some lookahead symbols.  
Thus an  item looks like:
 item looks like: 
![$[A\, \rightarrow\,\alpha_1 \alpha_2 \ldots \alpha_i {}_{\triangle} \alpha_{i+1} \ldots \alpha_n,\; a]$](img345.png) 
This means that:
 , and
, and 
 (or
something which corresponds to them), then we can reduce by the rule
 (or
something which corresponds to them), then we can reduce by the rule 
 
 ,
,
[Note: Given that the next input symbol will be following  in the
current sentential form, we know that the lookahead symbol `a' must be
in
 in the
current sentential form, we know that the lookahead symbol `a' must be
in  .]
.]