Jan30 - 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 January 30, 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 01/30/07 Outline ± Recap ± Introduction (Section 2.1) ± Syntax definition (Section 2.2) ± Syntax directed translation (Section 2.3) ± Parsing (Section 2.4) ± A translator for simple expressions (Section 2.5) ± Lexical analysis (Section 2.6) ± A simple syntax-directed translator (Chapter 2) ± The rest of Chapter 2 ± Summary and homework
Background image of page 2
Instructor: Dr. Liang Cheng CSE302: Compiler Design 01/30/07 You should now be able to … ± Define language syntax using BNF grammar ± Parse sentences and detect syntax errors ± Use syntax -directed definition to perform language translation ± Understand lexical analysis
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 01/30/07 Outline ± Recap ± A simple syntax-directed translator (Chapter 2) ± Intermediate code generation (Section 2.8) ± Symbol tables (Section 2.7) ± Summary and homework
Background image of page 4
Instructor: Dr. Liang Cheng CSE302: Compiler Design 01/30/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 5

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

View Full DocumentRight Arrow Icon
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 / 17

Jan30 - 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