TiogaRopes.mesa
Mike Spreitzer August 3, 1986 11:12:05 am PDT
DIRECTORY Rope, TextNode;
TiogaRopes: CEDAR DEFINITIONS = {
ROPE: TYPE = Rope.ROPE;
Node: TYPE = TextNode.Ref;
RopeFromTioga: PROC [node: Node, start: INT ← 0, length: INTLAST[INT], skipCommentNode: BOOLFALSE] 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.
}.