Compilers (CS362 2004S)

Homework 1: Lexical Analysis

Assigned: Monday, 9 February 2004
Due: Monday, 16 February 2004

Form of the assignment: This is primarily a written assignment, rather than a programming assignment. I consider it important for you to be able to deal with both the theory and practice of compilers.

Collaboration: You should feel free to discuss the assignment, possible solutions, and possible errors in those solutions with your colleagues. However, each student should turn in his or her own set of solutions to these problems. If you discuss the assignment with others, make sure to cite them at the top of you assignment.


Do problems 3.5, 3.7(b,f,h,i), 3.15, 3.16, 3.17, and 3.22.

For extra credit and extra learning, try other problems you deem interesting and appropriate.

Turning it in

Turn in your answers to me. Your answers may be hand-written and hand-drawn (if your handwriting and drawing are legible) or typeset.

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 Wed May 5 11:46:44 2004.
The source to the document was last modified on Mon Feb 9 13:05:44 2004.
This document may be found at

You may wish to validate this document's HTML ; Valid CSS! ; Check with Bobby

Samuel A. Rebelsky,