COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
For the rule S
A
Null
B
Some value
C
constant
D
None of the other options
Explanation: 

Detailed explanation-1: -Step 1: Find all nullable non-terminal variables which derive first. Step 2: For all the productions of X → a, construct all production X → a, where a is obtained from x by removing non-terminals from the first step. Step 3: Combine the result of the second step with the original production.

Detailed explanation-2: -In the name LL(1), the first L stands for scanning the input from left to right, the second L stands for producing a leftmost derivation, and the 1 stands for using one input symbol of lookahead at each step to make parsing action decision.

There is 1 question to complete.