GATE CSE
First time here? Checkout the FAQ!
x
–1 vote
38 views

 

If a grammar is CLR, how can we have any conflict?

asked in Compiler Design by Junior (597 points)   | 38 views
Question seems to be framed wrongly.LALR is done by merging CLR states, this can reduce R-R conflicts only because if original CLR did not contain S-R conflict the same wont be present in LALR.Question should be present in LALR not in CLR.
Even I feel the same...
You get LALR(1) table from CLR(1) table.

In LALR(1), you merge the states having the same core. SO, you might get RR conflicts in LALR(1) table even though you dont have them in CLR(1) table.

Please log in or register to answer this question.

Related questions

0 votes
2 answers
1
asked in Compiler Design by Vineeta Garg (247 points)   | 53 views
0 votes
0 answers
2
asked in Compiler Design by Adiaspirant Junior (597 points)   | 35 views
+1 vote
1 answer
3
asked in Compiler Design by pranjalgennext Active (1.3k points)   | 57 views


Top Users Mar 2017
  1. rude

    5118 Points

  2. sh!va

    3054 Points

  3. Rahul Jain25

    2920 Points

  4. Kapil

    2730 Points

  5. Debashish Deka

    2602 Points

  6. 2018

    1574 Points

  7. Vignesh Sekar

    1422 Points

  8. Akriti sood

    1382 Points

  9. Bikram

    1350 Points

  10. Sanjay Sharma

    1128 Points

Monthly Topper: Rs. 500 gift card

21,531 questions
26,861 answers
61,191 comments
23,206 users