COMS W4115
Programming Languages and Translators
Lecture 6: Implementing a Lexical Analyzer
September 28, 2009

Lecture Outline

  1. Finite automata
  2. Equivalence of regular expressions and finite automata
  3. Converting a regular expression to an NFA
  4. Converting an NFA to a DFA
  5. Simulating an NFA

1. Finite Automata

2. Equivalence of Regular Expressions and Finite Automata

3. Converting a Regular Expression to an NFA

4. Converting an NFA to a DFA

5. Simulating an NFA

6. Reading Assignment



aho@cs.columbia.edu