Syntax Analysis28

0. Consider the following grammar.
S → S × E
S → E
E → F + E
E → F
F → id
Consider the following LR(0) items corresponding to the grammar above.
(i) S → S ×.E
(ii) E → F.+ E
(iii) E → F + .E
Given the items above, which two of them will appear in the same set in the canonical sets-of items for the grammar?

  • Option : D
  • Explanation :
    Go to Graph is:-

    So all are in different set.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *