The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+2 votes
63 views

Image may contain: text

asked in Compiler Design by Boss (47.1k points) | 63 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.

 

answered by Junior (731 points)

Related questions

0 votes
0 answers
1
asked Dec 25, 2018 in Compiler Design by Sanjay Sharma Boss (47.1k points) | 65 views
0 votes
2 answers
2
asked Dec 25, 2018 in Probability by Sanjay Sharma Boss (47.1k points) | 106 views
0 votes
1 answer
4
asked Dec 25, 2018 in CO & Architecture by Sanjay Sharma Boss (47.1k points) | 52 views
0 votes
1 answer
5
asked Dec 25, 2018 in Combinatory by Sanjay Sharma Boss (47.1k points) | 107 views
+1 vote
1 answer
6
asked Dec 25, 2018 in Theory of Computation by Sanjay Sharma Boss (47.1k points) | 102 views
0 votes
0 answers
7
asked Dec 25, 2018 in Databases by Sanjay Sharma Boss (47.1k points) | 54 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
49,588 questions
54,197 answers
187,536 comments
71,152 users