Add constructors for operator, constant and rule.