Next: Module 4: Error Analysis
Up: course_outline
Previous: Module 2: Lexical Analysis
No. of lectures : 10
Topics Covered
- Motivation and Issues
- Basic Concepts and Definitions in Parsing
- Principles of Top-Down parsing
- Top-Down Parser Construction
- Principles of Bottom-Up Parsing
- Construction of LR Parsers
- Automatic Generation of LR Parsers
Objectives
At the conclusion of the module, the student should be
able to:
- Understand the role of a parser, its interface with the
scanner and the rest of the compiler.
- Understand the basic concepts such as derivations, parse-trees,
ambiguity and their relevance to parsing.
- Construct equivalent Context Free Grammars using transformations such as
left factoring, left recursion removal, etc. and know their relationship to
the underlying parsing method.
- Understand the algorithms that generate various useful
information such as FIRST, FOLLOW, items and sets of items,
etc., from a CFG.
- Create LL(1), SLR(1), LALR(1) and LR(1) parsing tables
manually for small grammars.
- Relate the theoretical results of LR parsing to understand
the behaviour of these parsers and also their capabilities.
- Write grammar rules and actions in yacc to construct
a parser for a subset of some programming language
and test the same.
Next: Module 4: Error Analysis
Up: course_outline
Previous: Module 2: Lexical Analysis
Amitabha Sanyal
2000-12-07