Rename all the occurrences of a rule name in a conatenation to a new rule name.
(concatenation-rename-rule concatenation oldname newname) → new-concatenation
Function:
(defun concatenation-rename-rule (concatenation oldname newname) (declare (xargs :guard (and (concatenationp concatenation) (rulenamep oldname) (rulenamep newname)))) (cond ((endp concatenation) nil) (t (cons (repetition-rename-rule (car concatenation) oldname newname) (concatenation-rename-rule (cdr concatenation) oldname newname)))))