Skip to main content

5. Macros

There are often common addresses, for which a cleaner representation is desired. This is achieved by use of Macros. If a can be parsed as:

<otherstring> "=" *( any )

Then the leading string is taken as a Macro, which is substituted. This may be applied recursively. When presenting Network Address to humans, the longest available substitution should be used. For example:

                       ________________________
|_Macro_|Value__________ |
| UK.AC |DCC+826+d110000 |
|_Leeds_|UK.AC=120______ |

Then "Leeds=22" would be expanded to "DCC+826+d11000012022".