Compiler Design homework