COMPILER DESIGN

SYNTAX ANALYSIS

ERROR RECOVERY IN SYNTAX ANALYSIS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which one is not a LR(0) item ____
A
A
B
A
C
A
D
None of the above
Explanation: 

Detailed explanation-1: -LR (1) item is a collection of LR (0) items and a look ahead symbol. LR (1) item = LR (0) item + look ahead. The look ahead is used to determine that where we place the final item. The look ahead always add $ symbol for the argument production.

Detailed explanation-2: -❖ Types of LR Parsers 1.LR(0) Parser 2. Simple LR-Parser (SLR) 3. Canonical LR Parser (CLR) 4. LALR Parser.

There is 1 question to complete.