code generation for WritelnStmts