GATE CSE
First time here? Checkout the FAQ!
x
0 votes
61 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 (75.6k points)  
recategorized by | 61 views

1 Answer

0 votes
Both conflicts are present .

SR and RR
answered by Junior (541 points)  
grammar is ambiguous.
Top Users Feb 2017
  1. Arjun

    5386 Points

  2. Bikram

    4230 Points

  3. Habibkhan

    3952 Points

  4. Aboveallplayer

    3086 Points

  5. Debashish Deka

    2564 Points

  6. sriv_shubham

    2318 Points

  7. Smriti012

    2240 Points

  8. Arnabi

    2008 Points

  9. mcjoshi

    1696 Points

  10. sh!va

    1684 Points

Monthly Topper: Rs. 500 gift card

20,863 questions
26,022 answers
59,696 comments
22,133 users