package ocp-indent

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocp-indent-1.9.0.tbz
sha256=da4ff552f9fc230d7c07f64a8ef89295907bf8d3c581132f05dcf0dd87a172b3
sha512=d734487162ab1373110a4c4d4f83128b21c39ec2d6e6cd1f9708178b190553cf60faebf62483113ceed490d1b9948c6241e798ea81ee266f3ed7fd8113552684

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