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
- High light the keywords
- Do a pretty printing of the source program.
- 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.
- SCIGEN - Technical Ppaer Generation from MIT
- Context Free Art