finish the chapter7 of the compiler