Feb20 - 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 20, 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/20/07 Outline ± Recap ± Implementing lexical-analyzer generators (Sections 3.6, 3.7, and 3.8) ± Syntax analysis (Chapter 4) ± Summary and homework
Background image of page 2
Instructor: Dr. Liang Cheng CSE302: Compiler Design 02/20/07 Three Types Of Parsers ± Universal ± Cocke-Younger-Kasami algorithm and Earley’s algorithm ± Top-down ± From the root to leaves ± Bottom-up ± From leaves to the root
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/20/07 Input And Output Of Parsers ± A stream of tokens coming from lexer ± Generate some representation of the parse tree ± Collecting information about tokens into the symbol table ± Type checking and static semantic analysis ± Error handling
Background image of page 4
Instructor: Dr. Liang Cheng CSE302: Compiler Design 02/20/07 Error Handling: Error Types ± Common types of errors ± Lexical errors ± Misspelling, missing quotes around string texts ± Syntactic errors ± Misplaced semicolons ± Extra or missing braces ± Missing matching keywords ± Static semantic errors ± Type mismatches ± Return values for void return method ± Logical errors ± = vs. ==
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 CSE302: Compiler Design 02/20/07 Error Handling: Error Recovery
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.

This note was uploaded on 08/06/2008 for the course CSE 302 taught by Professor Cheng during the Spring '07 term at Lehigh University .

Page1 / 18

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