PhoneMappings.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Last modified by D. Swinehart, November 25, 1985 2:04:37 pm PST
DIRECTORY
Rope USING [ ROPE ]
;
PhoneMappings: CEDAR DEFINITIONS = {
See PARCPhoneMappingsImpl. A list of mappings of this type is created by compiling and running a file like PARCPhoneMappingsImpl. It will be found under the $map attribute of the atom $PhoneMap, so that the map can be changed while the system is running by simply running a new version. This type is now separate to break a dependence of stuff in Parameters on stuff in Thrush. The dependence now goes the other way (pretty harmless, since we don't expect this type to change very often.
The PhoneMappings are grist for a matching interpreter in WhitePagesImpl that converts telephone numbers to identify local extensions, supply prefixes, intercept Intelnet numbers that are too local and convert them to DDD numbers, and the like. Again, see the PhoneNumberMappingsImpl and WhitePagesImpl.
PhoneMap: TYPE = LIST OF PhoneMapEntry;
PhoneMapEntry: TYPE = RECORD [
pattern: Rope.ROPE,
replacement: Rope.ROPE
];
}.