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

 

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

asked in Compiler Design by Junior (621 points)   | 40 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)   | 78 views
0 votes
0 answers
2
asked in Compiler Design by Adiaspirant Junior (621 points)   | 37 views
+1 vote
1 answer
3
asked in Compiler Design by pranjalgennext Active (1.3k points)   | 66 views


Top Users Jul 2017
  1. Bikram

    4386 Points

  2. manu00x

    2464 Points

  3. Debashish Deka

    1850 Points

  4. joshi_nitish

    1686 Points

  5. Arjun

    1340 Points

  6. Hemant Parihar

    1184 Points

  7. Arnab Bhadra

    1112 Points

  8. Shubhanshu

    1080 Points

  9. Ahwan

    900 Points

  10. rahul sharma 5

    732 Points


24,031 questions
30,983 answers
70,430 comments
29,358 users