SYNTAX ANALYSIS
ERROR RECOVERY IN SYNTAX ANALYSIS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Consider the grammar:S
|
LL (1)
|
|
SLR (1)
|
|
LALR (1)
|
|
LR (1)
|
Explanation:
Detailed explanation-1: -S → C CC → c C | dThe grammar isa)LL(1)b)SLR(1) but not LL(1)c)LALR(1) but not SLR(1)d)LR(1) but not LALR(1)Correct answer is option ‘A’. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the grammar shown below.
There is 1 question to complete.