CS322 Languages and Compiler Design II Homework 6