ICS 142
Klefstad

Syntax Analysis

The Role of the Parser

General Types of Parsers

Context-Free Grammars (CFGs)

CFG Example

Grammar-Related Terms





Limitations of Regular Languages

REs versus CFGs in Practice

Writing a Grammar


Limitations of CFG

Why Use Context-Free Grammars?

Using Ambiguous Grammars

Operator-Precedence Parsing


Top-Down Parsing

LL(1) Predictive Parsing


Example Pascal Statement Parser


Bottom-Up Parsing

LR Parsing

LR Parsing Algorithm



Classic Problems in LR Parsing

Parser Generators


Error Recovery