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

2 Answers

0 votes
Both conflicts are present .

SR and RR
answered by Junior (803 points)  
grammar is ambiguous.
0 votes
only RR conflict
answered by (61 points)  


Top Users Sep 2017
  1. Habibkhan

    7142 Points

  2. Warrior

    2640 Points

  3. Arjun

    2480 Points

  4. rishu_darkshadow

    2466 Points

  5. A_i_$_h

    2214 Points

  6. nikunj

    1980 Points

  7. manu00x

    1846 Points

  8. makhdoom ghaya

    1770 Points

  9. Bikram

    1744 Points

  10. SiddharthMahapatra

    1718 Points


26,133 questions
33,705 answers
79,886 comments
31,105 users