Add grammar rule.