Renaming
Renaming of rules in ABNF grammars.
It is sometimes useful to systematically rename a rule in a grammar.
For example, the HTTP grammar specified in RFC 7230 includes a rule uri-host defined by a prose value notation
that references the rule host from the URI grammar specified in RFC 3968. Prior to plugging the URI grammar rules
into the HTTP grammar rules,
the rule host in the URI grammar rules
should be renamed to uri-host.
Subtopics
- Rule-rename-rule
- Rename all the occurrences of a rule name to a new rule name,
both in the definiens of a rule
and in the name of the rule itself.
- Rulelist-rename-rule
- Rename all the occurrences of a rule name to a new rule name,
in all the rules in a list of rules.
- Element-rename-rule
- Rename all the occurrences of a rule name in an element
to a new rule name.
- Concatenation-rename-rule
- Rename all the occurrences of a rule name in a conatenation
to a new rule name.
- Alternation-rename-rule
- Rename all the occurrences of a rule name in an alternation
to a new rule name.
- Repetition-rename-rule
- Rename all the occurrences of a rule name in a repetition
to a new rule name.