extract variable grammar rule.