Pp_loc.PositionA position in a file or string.
It is abstract to provide more flexibility than Lexing.position.
val of_lexing : Stdlib.Lexing.position -> tConvert position. The filename is ignored, the offset, line, and column are potentially used so they matter.
val of_offset : int -> tBuild a position from a byte offset in the input.
val of_line_col : int -> int -> tof_line_col line col builds the position indicating the character at column col and line line of the input. Lines and columns start at 1.
to_offset input pos computes the offset in bytes corresponding to position pos within input.