COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Left Factoring is a transformation for factoring out the ____ prefixes.
A
odd
B
common
C
positive
D
negative
Explanation: 

Detailed explanation-1: -Left Factoring is a grammar transformation technique. It consists in “factoring out” prefixes which are common to two or more productions.

Detailed explanation-2: -Left factoring is a process by which the grammar with common prefixes is transformed to make it useful for Top down parsers. This kind of grammar creates a problematic situation for Top down parsers. Top down parsers can not decide which production must be chosen to parse the string in hand.

Detailed explanation-3: -In compiler design, left factoring is a process to transform the grammar with common prefixes.

There is 1 question to complete.