Concepts Of Programming Languages
Concepts Of Programming Languages
12th Edition
ISBN: 9780134997186
Author: Sebesta, Robert W.
Publisher: Pearson,
Expert Solution & Answer
Book Icon
Chapter 4, Problem 12RQ

Explanation of Solution

Parsing algorithms work only on a subset of grammars for the following reasons:

  • Parsing based on a grammar (even unambiguous) is often complicated and inefficient.
  • The complexity of parsing algorithms is generally Ο(n3), which means the time will be of order of cube of the length of parsing string.
  • Parsing algorithms are required to be repeated if parser makes some mistakes in the process. Also algorithms are required to be backed up as some times the parse tree created should be dismantled and rebuilt in some cases

Blurred answer
Students have asked these similar questions
Explain why compilers utilise parsing methods that are only effective on a subset of all grammars in the first place.
Why do compilers employ parsing techniques that only work with a subset of all grammars?
Explain why compilers, in the first place, use parsing techniques that are only effective on a subset of all grammars.
Knowledge Booster
Background pattern image
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