Rename all the occurrences of a rule name in a repetition to a new rule name.
(repetition-rename-rule repetition oldname newname) → new-repetition
Function:
(defun repetition-rename-rule (repetition oldname newname) (declare (xargs :guard (and (repetitionp repetition) (rulenamep oldname) (rulenamep newname)))) (make-repetition :range (repetition->range repetition) :element (element-rename-rule (repetition->element repetition) oldname newname)))