Feb01 - CSE302: Compiler Design Instructor: Dr. Liang Cheng...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE302: Compiler Design Instructor: Dr. Liang Cheng Department of Computer Science and Engineering Lehigh University February 01, 2007
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Instructor: Dr. Liang Cheng CSE302: Compiler Design 02/01/07 Outline ± Recap ± Intermediate code generation (Section 2.8) ± Symbol tables (Section 2.7) ± Lexical analysis (Chapter 3) ± Summary and homework
Background image of page 2
Instructor: Dr. Liang Cheng CSE302: Compiler Design 02/01/07 Two Kinds of Intermediate Representation ± Syntax tree representation ± Expressions ± E1 op E2 ± Statements ± while (expr) stmt ± do stmt while expr ± Use a translation scheme ± Semantic rules or semantic actions ± Three-address-code representation OP E1 E2 while expr stmt do stmt expr
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Instructor: Dr. Liang Cheng CSE302: Compiler Design 02/01/07 Symbol Tables ± Hold info of source program constructs ± Collected during analysis ± Used for synthesis ± Support multiple declarations of the same identifier within a program ± A separate symbol table for each scope ± A program block ± A class
Background image of page 4
Instructor: Dr. Liang Cheng CSE302: Compiler Design 02/01/07 Outline ± Recap ± Lexical analysis in a nutshell ± Overview ± Regular expressions ± Finite automata ± Implementation of a scanner ± Summary and homework
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Instructor: Dr. Liang Cheng
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 19

Feb01 - CSE302: Compiler Design Instructor: Dr. Liang Cheng...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online