The Gateway to Computer Science Excellence
+2 votes
66 views

Image may contain: text

in Compiler Design by Boss (48.6k points) | 66 views

1 Answer

+2 votes

Neither S1 nor S2.

 

S1: LR(1) parser will have Reduce -Reduce conflict. In Initial state, due to shift on terminal 'c'  two productions will go to the same state, Productions A->c . , $ and B -> c . , $  under the same lookaheads and results in R-R conflict.

 

S2: It is not LL(1), Under S, we have two production for terminal c.

 

by Junior (751 points)

Related questions

0 votes
0 answers
1
asked Dec 25, 2018 in Compiler Design by Sanjay Sharma Boss (48.6k points) | 67 views
0 votes
2 answers
2
asked Dec 25, 2018 in Probability by Sanjay Sharma Boss (48.6k points) | 111 views
0 votes
1 answer
4
asked Dec 25, 2018 in CO and Architecture by Sanjay Sharma Boss (48.6k points) | 53 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,650 questions
56,186 answers
193,939 comments
94,697 users