Compilers homework