retagged by
2,273 views
1 votes
1 votes

Given the following statements:

$S_1$: 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.

$S_2$: LR grammar is a large subclass of context free grammar as compared to that SLR and LALR grammars.

Which of the following is true?

  1. $S_1$ is not correct and $S_2$ is not correct.
  2. $S_1$ is not correct and $S_2$ is correct.
  3. $S_1$ is correct and $S_2$ is not correct.
  4. $S_1$ is correct and $S_2$ is correct
retagged by

2 Answers

4 votes
4 votes

Answer is  :D

S1 is correct and S2 is correct
 
0 votes
0 votes

I dont understand the term left context here ? . I think it should make use of lookahead for reduction , if it then statement 1 is correct too 

Statement 2 is correct .

Answer:

Related questions

1 votes
1 votes
1 answer
1
go_editor asked Jul 26, 2016
1,828 views
The process of assigning load addresses to the various parts of the program and adjusting the code and data in the program to reflect the assigned address is calledSymbol...
22 votes
22 votes
6 answers
2
1 votes
1 votes
1 answer
3
go_editor asked Jul 26, 2016
2,916 views
Linux operating system usesAffinity schedulingFair Preemptive SchedulingHand ShakingHighest Penalty Ratio Next