TiogaRopes.mesa
Copyright Ó 1992 by Xerox Corporation. All rights reserved.
Mike Spreitzer August 3, 1986 11:12:05 am PDT
Willie-s, April 3, 1992 5:27 pm PST
DIRECTORY Rope, Tioga;
TiogaRopes: CEDAR DEFINITIONS = {
ROPE: TYPE = Rope.ROPE;
Node: TYPE = Tioga.Node;
RopeFromTioga: PROC [node: Node, start: INT ¬ 0, length: INT ¬ LAST[INT], skipCommentNode: BOOL ¬ FALSE] RETURNS [asRope: ROPE];
The ROPE starts start chars after the begin of the node, and continues for given length, or until end of document, whichever is first.
The ROPE can span multiple nodes, even ones less nested than node.
Caller asserts the document, between the beginning of the node and the end of the ROPE, will not change during the lifetime of the ROPE.
}.