FileDWIM.mesa
Mike Spreitzer August 7, 1986 6:20:30 pm PDT
DIRECTORY Rope;
FileDWIM: CEDAR DEFINITIONS = {
ROPE: TYPE = Rope.ROPE;
ResolveHint: PROC [hint: ROPE, contextFileName: ROPENIL, searchHack: BOOLFALSE, tryAll: BOOLTRUE] RETURNS [ans: Answer];
The contextFileName is used to provide hints.
The contextFileName may be NIL.
The contextFileName may be only a directory.
If the contextFileName is a DF file name, knowledge about DF files is used.
If searchHack, we consider the possibility that shortName may be of the form Interface.Element, and try to return a filename for the interface and an interface element name to search for.
If not tryAll, we skip the standard rules (i.e., the ones embodied in Tioga), and use only the non-standard ones.
Answer: TYPE = RECORD [fullFileName, searchFor: ROPE];
fullFileName = NIL means not found.
}.