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+
bartleby

Videos

Textbook Question
Book Icon
Chapter 3, Problem 1PS

The two mathematical models for language description are:

  • Recognition
  • Generation

These two mathematical models can define the syntax of programming language in the given manner,

Recognition:

  • It works on yes or no basis. In this method, a mechanism called recognition device (R) is used that can read strings from the given alphabet.
  • This would indicate whether the input string is in language or not. That means, it will either accept the string or reject the string.
  • Recognition device filters the correctly formed sentences from those that are incorrectly formed.
  • In recognition, recognizer is used for syntax. analysis. Recognizer does not check for all possible strings but it simply check if the given programs are in the language or not.
  • It checks the syntactical part of the program.

Generation:

  • In this method, a device named generator is used to generate the sentences in a language.
  • Whenever a generator is called, it generator a sentence which is unpredictable.
  • When a string is to be checked if it is a correct or incorrect, first of all, it calls the generator to generate a correct sentence.
  • Then, it compares the correct generated string with the input string.
  • Hence, it determines the correction in string.
Blurred answer
Students have asked these similar questions
Discrete Structures:
This is a definition of explanatory language:
part 1: Regular expression, that start & End with “a”, but also accept single “a” part 2: Define RE, IF start with “a” THEN 〖 Length(w)〗_Max  =3 IF start with “b” THEN 〖 Length(w)〗_Min  =3 part 3: finite automata NFA and DFA for a language, set of string starting & Ending with same End of question

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
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
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License