Homework 1
Due: start of class on Tuesday, February 17th
- p.32 of PLP: Exercise 1.1, parts (a) and (b) only.
For (a) and (b), give an example of buggy code and list
the compiler error message that you receive on that buggy code.
Be sure to list what language you use and which compiler version
you use.
- p.32 of PLP: Exercise 1.2. If you think there are advantages
to interpreting a language, be sure to list each advantage explicitly.
- p.33 of PLP: Exercise 1.4. Answer the questions for C and Java
only.
- p.33 of PLP: Exploration 1.7, part (b) only.
- p.98 of PLP: Exercise 2.9, parts (a) and (b) only. For part (a),
don't just restate the grammar rules in English text; instead,
summarize the language that is generated by this grammar.
- p.101 of PLP: Exercise 2.30. Answer the first
question for C and Java only. For the second question, answer how
you would implement C's language definition regarding (x)-y.
In particular, what task would the scanner do, and what task would
the parser do?