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

Image may contain: text

in Compiler Design by Boss (48.4k points) | 64 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 (737 points)

Related questions

0 votes
0 answers
1
asked Dec 25, 2018 in Compiler Design by Sanjay Sharma Boss (48.4k points) | 66 views
0 votes
2 answers
2
asked Dec 25, 2018 in Probability by Sanjay Sharma Boss (48.4k points) | 108 views
0 votes
1 answer
4
asked Dec 25, 2018 in CO and Architecture by Sanjay Sharma Boss (48.4k points) | 52 views
0 votes
1 answer
5
asked Dec 25, 2018 in Combinatory by Sanjay Sharma Boss (48.4k points) | 108 views
+1 vote
1 answer
6
asked Dec 25, 2018 in Theory of Computation by Sanjay Sharma Boss (48.4k points) | 104 views
0 votes
0 answers
7
asked Dec 25, 2018 in Databases by Sanjay Sharma Boss (48.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,092 questions
55,239 answers
190,758 comments
85,996 users