CS453 Lecture Context Free Grammar Intro 1
Plan for This Today
Context Free Grammars– model for specifying programming languages – why not just use regular expressions? – example grammar – derivations
Parse trees Syntax-directed translation– using syntax-directed translation to interpret MiniSVG
Top-down Predictive ParsingOur Next Class of Languages
Regular Languages
} {
n nb
a } {
R
ww
Context-Free Languages * *b a * ) ( b a + Context-Free Languages Pushdown Automata Context-Free Grammars stack automaton
We will start here
Example