this is solution of compilers question paper.