Introduction to language translation. Language translation phases. Generators. Lexical analysis: Regular expressions; NFA; DFA. Syntactic analysis: Formal definition of grammars; BNF and EBNF; bottom-up vs. top-down parsing; Tabular vs. recursive-descent parsers; Error handling; Models of execution control. Declaration, modularity, and storage management: Code generation. Introduction to Optimization. Pre-req.: COMP 311.