Principle of Compilers Homework 2