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 21RQ

Explanation of Solution

Handle of a sentential form:

A bottom up parser attempts for a reduction from right hand side of right sentential form (γ) by replacing the right most sub-string (assume it be β) of terminals and non-terminals. From the grammar rule the most appropriate rule with β on RHS is to be selected. The correct RHS is called handle.

  • A handle of a sentential form is a substring β such that, β matches with a rule A β in the grammar and replacing β with A is a step in the reverse of the right most derivation of a string.
  • The formal definition of a handle can be given as: For a right sentential form γ=αβw, β is the handle if and only if ⇒</

Blurred answer
Students have asked these similar questions
What is a ternary operator?
What is a descriptor?
What is the handle of a sentential form?