S1: SLR uses follow information to guide reductions. In case
of LR and LALR parsers, the look-aheads are associated with the items and they
make use of the left context available to the parser.
S2: LR grammar is a larger sub-class of context free grammar as
compared to that SLR and LALR grammars.
Which of the following is true ?
(A) S1is not correct and S2
is not correct.
(B) S1
is not correct and S2 is correct.
(C) S1
is correct and S2 is not correct.
(D) S1
is correct and S2 is correct.
Answer D.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.