DIRECTORY IO USING [STREAM], RegularExpression USING [Finder], Rope USING [ROPE]; Grep: CEDAR DEFINITIONS = { Switches: TYPE = {oncePerLine, textOnly, positionsOnly, verbose, fileNamesOnly}; SwitchSettings: TYPE = ARRAY Switches OF BOOLEAN; GetSwitches: PROC[cmdLine: LIST OF Rope.ROPE, prefixLen: INT _ 2] RETURNS[ switches: SwitchSettings, remainder: LIST OF Rope.ROPE ]; RegularOutput: PROC[switches: SwitchSettings] RETURNS[ yes: BOOL ]; GrepStream: PROC[ pattern: RegularExpression.Finder, inStream, outStream: IO.STREAM, switches: SwitchSettings, fileName: Rope.ROPE, interrupt: REF BOOL ] RETURNS [numberOfHits: INT]; }. ¬Grep.mesa Copyright c 1985 by Xerox Corporation. All rights reserved. Jim Donahue July 16, 1985 8:20:20 am PDT TRUE for the default settings of all of the switches Κc˜codešœ ™ Kšœ Οmœ1™