1 / 3

Review for the Midterm. Overview (Chapter 1): What are the phases in a compiler?

Review for the Midterm. Overview (Chapter 1): What are the phases in a compiler? What do we do in each phase?. Review for the Midterm. Lexical analyzer (chapter 3): Regular expression definition Use regular expression to express an pattern How to recognize regular expression? NFA DFA

darin
Télécharger la présentation

Review for the Midterm. Overview (Chapter 1): What are the phases in a compiler?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Review for the Midterm. • Overview (Chapter 1): • What are the phases in a compiler? • What do we do in each phase?

  2. Review for the Midterm. • Lexical analyzer (chapter 3): • Regular expression definition • Use regular expression to express an pattern • How to recognize regular expression? • NFA • DFA • minimize the DFA

  3. Review for the Midterm. • Syntax analysis (chapter 4) • context free grammar • use it to specify a language • top-down parsing • LL(1) (What is an LL(1) grammar?) • How an LL(1) parser works? • How to construct an LL(1) parsing table for a grammar. • (First, Follow) • Bottom parsing • SLR, LR(1), LALR • How an LR(1) parser works • How to construct an SLR/LR(1)/LALR(1) parsing table? • What are the major differences among these parsers?

More Related