package loc
Module Loc.OffsetSource
Number of bytes from the beginning of the input. The first byte has offset 0. Such offset is named pos_cnum in the Lexing.position terminology.
Reading the pos_cnum of a lexing position.
Rebuild the position from a file at the given offset. Raises Invalid_argument if offset < 0 or if offset > file.length. The end-of-file position file.length is purposely allowed in order for the resulting position to be used as stop value for a range covering the file until its last character (which may occasionally be useful).