Next: Module 6: Run-time Environments
Up: course_outline
Previous: Module 4: Error Analysis
No. of lectures : 10
Topics Covered
- Basic Concepts and Issues
- Syntax Directed Analysis
- S-attributed Definitions
- Semantic analysis using S-attributes.
This involves writing attribute
grammars for declaration processing, type checking and generating
intermediate code for different language constructs.
- L-attributed Definitions
Objectives
At the conclusion of the module, the student should be
able to:
- Understand the issues in static semantic analysis.
- Understand how to perform such analyses in a syntax directed fashion by augmenting the CFG
with semantic rules and the parsing process by attribute evaluation.
- Understand what S-attributed definitions are and see how
the evaluation of attributes in a S-attributed definition can be integrated with parsing.
- Understand the issues involved in
performing semantic analysis such as
processing of declarations in block structured languages, type checking
and type coercion and intermediate code generation for assignment
statement and other language constructs. Should also be able to
write attribute grammars to implement the required translation.
- Understand L-attributed definitions, their advantage over
S-attributed definitions and the evaluation of attributes in a L-attributed definition.
Next: Module 6: Run-time Environments
Up: course_outline
Previous: Module 4: Error Analysis
Amitabha Sanyal
2000-12-07