Add guard term into donot grammar