Slide 1 Context-Free Grammars Lecture 7 http://webwitch.dreamhost.com/grammar.girl/ Slide 2 CS 536 Fall 20002 Outline Scanner vs. parser –Why regular expressions are not…
Course Overview PART I: overview material 1 Introduction 2 Language processors (tombstone diagrams, bootstrapping) 3 Architecture of a compiler PART II: inside a compiler…
Agenda Scanner vs. parser Regular grammar vs. context-free grammar Grammars (context-free grammars) grammar rules derivations parse trees ambiguous grammars useful examples…