Pearson eText for Concepts of Programming Languages -- Instant Access (Pearson+)
Pearson eText for Concepts of Programming Languages -- Instant Access (Pearson+)
12th Edition
ISBN: 9780135102268
Author: Robert Sebesta
Publisher: PEARSON+
Expert Solution & Answer
Book Icon
Chapter 3, Problem 5RQ

Explanation of Solution

Differences between a sentence and a sentential form:

A sentence is a sentential form that has only terminal symbols. By terminal symbols we mean literal symbols that can appear in the inputs to or outputs from the creation rules of a new formal grammar that won’t change as per normal grammar rules.

To understand suppose a grammar that is defined by two rules:

A can become AB

A can become BA

Here ‘B’ is a terminal symbol because no rule exists that would change it to something else. On the other hand, ‘A’ has two rules that can change it, so it is nonterminal...

Blurred answer
Students have asked these similar questions
What is a simple phrase of a sentential form?
When it comes to evaluating expressions, what are the benefits of being able to do so without having to define actions inside the grammar?
What is the difference between static and dynamic semantics?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage