Lecture Notes – April 19, 2005
v a set of terminal symbols
v a set of non-terminal symbols
v a set of rules (productions)
v a starting (goal) symbol
terminals {x,y,q,z,d}
non-terminals { Whoozit, Watzit, Blurb}
starting symbol {Blurb}
productions
Blurb => Whoozit {Whatzit}
Whatzit => qd Whoozit | qz Whozit
Whoozit => x | x{y}
sample strings
x qd x
x qz x
xy qd x
xy qd xy
xyyyyy qz x
x qz xyyyyy
x qd xy qd x yy qz xyyyy