package ocp-indent

  1. Overview
  2. Docs
A simple tool to indent OCaml programs

Install

Dune Dependency

Authors

Maintainers

Sources

1.8.0.tar.gz
md5=d4d11e1aaedd7d3268ac7d5813de43ca
sha512=246a97f04b44371900a6f39eab34d9b674d6afa9026e78fce2ef171b5d28fcca0b49f353b2de9d09cb5529b896e47c253acc3074618060862e8a7debd9289afc

doc/ocp-indent.utils/Pos/Region/index.html

Module Pos.RegionSource

Lexer regions

Sourcetype t

A region in a lexer stream

Sourceval create : Position.t -> Position.t -> t

Create a region from a starting and an ending position

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

Return the column where the region starts

Sourceval end_column : t -> int

Return the column where the region ends

Sourceval char_offset : t -> int

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

Sourceval length : t -> int

Get the lenght of a region

Sourceval start_line : t -> int

Return the line number where the region starts

Sourceval end_line : t -> int

Return the line number where the region ends

Sourceval zero : t

The empty region

Sourceval translate : t -> int -> t

translate t x shifts a region by x characters

OCaml

Innovation. Community. Security.