Concepts of Programming Languages (11th Edition)
Concepts of Programming Languages (11th Edition)
11th Edition
ISBN: 9780133943023
Author: Robert W. Sebesta
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 4, Problem 19RQ

Explanation of Solution

Phrase of a sentential form:

Phrase in a parse tree is the string of terminals collected from the leaves of the partial parse tree, rooted at one specific internal node in the original parse tree. Now we can define phrase in a sentential form more precisely.

  • Phrase can be used to define handle in the right sentential. For a right sentential form γ=αβw, β is the handle if and only if *rmαAw  rmαβw.
  • This means that β is the handle γ=αβw , if β can be reduced to a non-terminal in one right most derivation (A) and resulting sentential form can be reduced to the start symbol on zero or more right most derivations

Blurred answer
Students have asked these similar questions
What is the handle of a sentential form?
What is the handle of a right sentential form?
What is a phrase of a sentential form?
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage