Compiler construction lecture's exercise