The Gateway to Computer Science Excellence
0 votes
332 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.

in Compiler Design by Veteran (105k points)
recategorized by | 332 views
0

Here  S→  ϵ will take as reduce/ shift action or not effect on LR(0)  DFA??

2 Answers

+1 vote
Both conflicts are present .

SR and RR
by Active (1.2k points)
+1
grammar is ambiguous.
–1 vote
only RR conflict
by Junior (795 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
50,645 questions
56,615 answers
195,894 comments
102,332 users