Goals

  • Context free grammars (CFGs) - definition
  • Context free languages (CFLs)
  • Pushdown automata (PDA)
  • Converting CFGs to PDAs

CFG - Formal definition

Defn: A Context Free Grammar (CFG) G is a 4-tuple ()

  • finite set of variables
  • finite set of terminal symbols
  • finite set of rules (rule form: )
  • start variable For write
  1. if can go
  2. if

PDA - Formal definition