Lecture: Scanner and Parser Generators

Background Material



We have now seen how to describe syntax using regular expressions and grammars and how to create scanners and parsers, by hand and using automated tools. In this lecture we provide more details on parsing and scanning and indicate how these tools work.


  1. Scanners and DFA
  2. Regular Expressions and NDFA
  3. Equivalence of DFA and NDFA
  4. Regular Languages and the limitations of regular expressions
  5. Recursive Descent Parsing
  6. LL(1) Grammars and Tob-down (Predictive) Parsing
  7. LR(1) Grammars and Bottom-up Parsing

Lecture Slides

Created: April 21, 2011 (updated June 7, 2012) by jjohnson AT cs DOT drexel DOT DOT edu