package lambdapi

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module RangeMap.MakeSource

Parameters

module _ : Range_intf.S

Signature

Sourcetype 'a t

Maps a position of the cursor (point) to the corresponding token of type 'a in a given text editor with a .lp file open.

Sourceval empty : 'a t

The empty range map.

Sourceval find : Range.point -> 'a t -> (Range.t * 'a) option

find pt map returns the only (token, range) couple in map such that pt is a point within the mapped interval range. Requires map to be well-defined (see add).

Sourceval add : Range.t -> 'a -> 'a t -> 'a t

add range token map adds a mapping (key : range, value : token) to map.

Requires all added keys to be non overlapping intervals to be well-defined. /!\ Does not ensure proper functionning if the added keys are overlapping intervals, e.g might change a previously added (key, element) couple or throw an error.

Sourceval to_string : ('a -> string) -> 'a t -> string
OCaml

Innovation. Community. Security.