modifed to generate intermediate code when -t option is passed