COMPILER DESIGN

Project 1

Due on February 20th,2012.

First project is to use scanner (scanner generator) and parser (parser geenrator). The language you will use will be the language specified in the Appendix A of dragon book (Aho Sethi Lam and Ullman) - If you do not have that book, I can lend you my copy. The grammar is present in their code. Please download Source (Java) Your tasks are as follows
  1. High light the keywords
  2. Do a pretty printing of the source program.
  3. Print a parse tree (that is how the grammar rules generate/derive the source program.
The second part of the project is for you to study at least one of the two projects (both of them use context free grammars in a clever way) (code of their project) and improve/create some thing more.
  1. SCIGEN - Technical Ppaer Generation from MIT
  2. Context Free Art