65 views
Can lookahead symbol be epsilon in LR(1) parsing?

and

pls give the LR(1) diagram for the following grammar?

A->AB | a
B->*AC | Cb | ∈
C->+ABc | ∈
edited | 65 views
0
$\epsilon$ means that will be reduced state, R-R conflict will be there. Then I donot think it will be any lookahead in $LR\left ( 1 \right )$

but a  FIRST symbol in $LL\left ( 1 \right )$
0

there is SR conflict..\$

Eplison can not be a look ahead symbole in LR(1).

Because whenever epsilon occoured it points next symbole.

1
+1 vote