The Gateway to Computer Science Excellence
+2 votes

Image may contain: text

in Compiler Design by Boss (49.4k points) | 72 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
asked Dec 25, 2018 in Compiler Design by Sanjay Sharma Boss (49.4k points) | 72 views
0 votes
2 answers
asked Dec 25, 2018 in Probability by Sanjay Sharma Boss (49.4k points) | 114 views
0 votes
1 answer
asked Dec 25, 2018 in CO and Architecture by Sanjay Sharma Boss (49.4k points) | 55 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,833 questions
57,697 answers
107,405 users