465 views
2 votes
2 votes
$S\rightarrow AaB$

$A\rightarrow ab|a$

$B\rightarrow b$

Above grammar is

a)Not LR(0)

b)Not LR(0) but SLR(1),CLR(1)

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
Sarahcs asked May 6
49 views
directed acyclic graph(DAG)is a simplified step from the AST. Solve the following expressions by AST and DAG: X=(((a+a))+((a+a)+(a+a)))
0 votes
0 votes
0 answers
2
0 votes
0 votes
0 answers
3
1 votes
1 votes
0 answers
4
Ebrahim asked May 5
38 views
1. Generate intermediate code for the following code segment. a) (x<y) and (y>z) and not z b) if(i%2==0)evensum=evensum+elseoddsum=oddsum+i;