Lesson 16: Parsing
Outline:
- Recap: parse trees
- Top-down parsing
- Bottom-up parsing
- Catching errors
- Wrap-up
What’s next
Upcoming events/assessments:
- CS Bits and Bytes tomorrow at 12pm in Anderson 329: Carleton alums from 3M
- Interpreter Part 3 (Tokenizer) is due tonight
- Quiz 4 will be this Friday and cover the following Quiz Learning Objectives:
- Core:
- PL 3: compilers vs. interpreters
- PL 4: Backus-Naur form
- IP 1: linked list
- IP 2: memory management
- IP 3: tokenization
- Advanced:
- IC 7: memory issues
- Repeat:
- IC 2: stack vs. heap (CR)
- IC 5: strings (CR)
- IC 6: reading C (CR)
- Core:
What you should do now:
- Read the assigned readings (see below)
- Work on Interpreter Part 3: Tokenizer – try to be able to handle simple files with only single-character symbols/numbers by Friday, if not sooner
Reading assignment (to be completed by the next class):
Parsing (from today):
- Parsing – you can access this full textbook through the library
Scoping (for next time):
- Static vs dynamic scoping
- Scope (Wikipedia) – read Intro and Definition sections