Concepts of Programming Languages (11th Edition)
Concepts of Programming Languages (11th Edition)
11th Edition
ISBN: 9780133943023
Author: Robert W. Sebesta
Publisher: PEARSON
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 4, Problem 18RQ

Explanation of Solution

Definition of Left factoring:

Left factoring is used when the parser has to choose between the RHSs of a non-terminal while expanding a non-terminal, where there are multiple RHS for the same non terminal starting with the same terminal symbol.

Example:

A aB / a

This production cannot pass the pairwise disjoint test as

First(aB)=aFirst(a)=aFirst(aB)

Blurred answer
Students have asked these similar questions
What exactly are internal sorts?
What is left factoring?
what are external or internal sorts ?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning