Implementing code generation for statement list.