CS362 2011F Compilers

Project, Phase 2: Parser

In Yacc/Bison, write a simple parser for Pascal that builds and prints out a parse tree.

Even though it is likely that we will only translate a portion of Pascal, you should attempt to include every part of the Pascal syntax.

You can find sample code to start with in Examples/Pparser.

Turn in a tarball with your revised .y and .l files, the included .c and .h files (including any changes you've made to them), a Makefile that lets me build the parser, and a few sample runs to demonstrate that you've experimented with it. You may also want to include a README that discusses any particular issues I should pay attention to (e.g., clever techniques you used, changes you've made to the C code, etc.)


Upcoming phases:

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Sun Nov 20 22:32:12 2011.
The source to the document was last modified on Mon Oct 10 09:56:07 2011.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS362/2011F/Handouts/phase-2.html.

Samuel A. Rebelsky, rebelsky@grinnell.edu