edited by
1,132 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 | ∈
edited by

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

2 votes
2 votes
0 answers
2
rahul sharma 5 asked Oct 14, 2017
1,534 views
Consider the following grammer:-Stmts - Stmt | Stmts;StmtStmt - Var =EVar ->id[E] | idE- id | (E)Find the number of conflicts in LR(0)?
0 votes
0 votes
1 answer
3
aditi19 asked Sep 11, 2018
286 views
Do every LR(1) grammar have DPDA?