package ocp-indent-nlfork

  1. Overview
  2. Docs
`ocp-indent` library, "newline tokens" fork

Install

Dune Dependency

Authors

Maintainers

Sources

nlfork-1.5.5.tar.gz
md5=d3ab3fc0b28674bdd2debe9ada1e5564
sha512=dc13da22e286b8f8005b2ec50e790ff48e80535747fe84a832a29879e482de32d14185a30dd1c8eaf7a6e5c6a700144eb862bb7fab4c8e1c99b7eb5fc271a09f

doc/ocp-indent-nlfork.utils/Nstream/Region/index.html

Module Nstream.Region

Lexer regions

type t

A region in a lexer stream

val create : Position.t -> Position.t -> t

Create a region from a starting and an ending position

val fst : t -> Position.t
val snd : t -> Position.t
val start_column : t -> int

Return the column where the region starts

val end_column : t -> int

Return the column where the region ends

val char_offset : t -> int

Get the region offset (number of characters from the beginning of the file

val length : t -> int

Get the lenght of a region

val start_line : t -> int

Return the line number where the region starts

val end_line : t -> int

Return the line number where the region ends

val zero : t

The empty region

val translate : t -> int -> t

translate t x shifts a region by x characters

OCaml

Innovation. Community. Security.