Computer Science 340
Programming Languages
Fall 2023, Siena College
Lecture 6: Attribute Grammars
Date: Thursday, September 21, 2023
Agenda
- Announcements
- Lab 2: More Python for Java Programmers [HTML] [PDF] grades very soon, really.
- Problem Set 1: [PDF] due tomorrow night.
- Time today to work on (and hopefully finish up) Lab 3: BNF and Parse Trees
- Problem Set 2: [PDF] due Tuesday night.
- It's inauguration day.
- A quick look at a sample solution to the last program on
Lab 2: Python Basics for Java Programmers [HTML] [PDF]
- Attribute Grammars
- The remainder of Chapter 3 is beyond the scope of our course.
- Time to work on Lab 3: BNF and Parse Trees, and
if done, Problem Set 2: [PDF].
- Assignment due in Canvas at the start of our next class: Read
Sebesta Chapter 4, Sections 1 and 2, and indicate that you have
done so by entering your name as your response in the Canvas
assignment. This assignment is worth 10 points in the
"Assignments" category. We will be covering the contents of this
section in detail in class, so don't worry if all the details aren't
very clear on your first reading.
Terminology
- static semantics
- attribute grammars (AGs)
- attributes, both synthesized and inherited
- semantic rule
- predicate
- "decoration" of a parse tree