defstring – Define macros as verbatim macros
The command \defstring defines its first argument (a control sequence name) as the content of its second argument, with category code ‘other’, with surrounding braces added.
Maybe you are interested in the following packages as well.
- redefine: Conditional macro, etc., definitions
- ccool: A key-value document command parser
- mathcommand: \newcommand-like commands for defining math macros
- xtemplate: A high-level interface for declaring document commands