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

 

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

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


Top Users May 2017
  1. akash.dinkar12

    3338 Points

  2. pawan kumarln

    2066 Points

  3. Bikram

    1922 Points

  4. sh!va

    1672 Points

  5. Arjun

    1614 Points

  6. Devshree Dubey

    1272 Points

  7. Debashish Deka

    1174 Points

  8. Angkit

    1056 Points

  9. LeenSharma

    1018 Points

  10. Arunav Khare

    758 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 May 22 - 28
  1. Bikram

    1008 Points

  2. pawan kumarln

    692 Points

  3. Arnab Bhadra

    632 Points

  4. Arjun

    342 Points

  5. bharti

    328 Points


22,888 questions
29,193 answers
65,292 comments
27,691 users