The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
199 views

Consider the following grammar:

  • $S \rightarrow S$
  • $S \rightarrow SS \mid a \mid \epsilon$


Indicate the shift-reduce and reduce-reduce conflict (if any) in the various states of the LR(0) parser.

asked in Compiler Design by Veteran (98.9k points)
recategorized by | 199 views

2 Answers

0 votes
Both conflicts are present .

SR and RR
answered by Active (1.1k points)
+1
grammar is ambiguous.
0 votes
only RR conflict
answered by (303 points)

Related questions



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

34,851 questions
41,835 answers
119,102 comments
41,454 users