in Compiler Design edited by
1,116 views
0 votes
0 votes
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 | ∈
in Compiler Design edited by
by
1.1k views

2 Comments

$\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
0

 there is SR conflict..$

0
0

1 Answer

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

Because whenever epsilon occoured it points next symbole.

Related questions

0 votes
0 votes
1 answer
3