1,432 views
2 votes
2 votes
Consider an SLR(1) & LALR(1) tables  which of  the following is true??

1. shift entries are same.

2 Reduce entries are same.

3. goto entries are different.

4.error entries are different.

2 Answers

3 votes
3 votes

here the option (3)  is totaly wrong, while option (1) is totaly ri8 but the options like (2) and (4) we cant say say directly that goto entries are different because it may or may not be similarly In error entries may or may not be different. It will solely depends on the production of grammar.

0 votes
0 votes
Option A will be wrong option for it.

Explanation::
Reduce enteries in the both grammar will be same.

U can check any practical example on it.

Similarly number of error enteries in the bothtypes of grammar will also be same.

Related questions

0 votes
0 votes
2 answers
1
dhruba asked Jun 5, 2023
330 views
0 votes
0 votes
1 answer
3
Kartheek8899 asked Oct 14, 2022
539 views
S - L = RS - RL - * RL - idR - LIs given CFG LR(0) & SLR(1)?
1 votes
1 votes
2 answers
4
Hirak asked Jun 14, 2019
1,348 views
In operator precedence parsing we have the rule that production cannot have two adjacent non-terminals or an epsilon production, so this production, S ab is allowed but ...